Skip to content

Commit 9dc9b22

Browse files
committed
fix kotlin lint
1 parent 7c1767b commit 9dc9b22

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

android/app/src/main/java/com/expensify/chat/RNTextInputResetModule.kt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
11
package com.expensify.chat;
22

3+
import android.content.Context;
4+
import android.view.View;
5+
import android.view.inputmethod.InputMethodManager;
36
import com.facebook.react.bridge.ReactApplicationContext;
47
import com.facebook.react.bridge.ReactContextBaseJavaModule;
58
import com.facebook.react.bridge.ReactMethod;
69
import com.facebook.react.uimanager.util.ReactFindViewUtil;
710

8-
import android.content.Context;
9-
import android.os.Build
10-
import android.view.View;
11-
import android.view.inputmethod.InputMethodManager;
12-
import androidx.annotation.RequiresApi
13-
14-
class RNTextInputResetModule(private val reactContext: ReactApplicationContext): ReactContextBaseJavaModule(reactContext) {
11+
class RNTextInputResetModule(private val reactContext: ReactApplicationContext) : ReactContextBaseJavaModule(
12+
reactContext
13+
) {
1514
override fun getName(): String = "RNTextInputReset"
1615

1716
// Props to https://github.com/MattFoley for this temporary hack
1817
// https://github.com/facebook/react-native/pull/12462#issuecomment-298812731
1918
@ReactMethod
2019
fun resetKeyboardInput(nativeId: String) {
2120
reactContext.runOnUiQueueThread {
22-
val imm = reactApplicationContext.baseContext.getSystemService(Context.INPUT_METHOD_SERVICE) as? InputMethodManager
21+
val imm = reactApplicationContext.baseContext.getSystemService(
22+
Context.INPUT_METHOD_SERVICE
23+
) as? InputMethodManager
2324

2425
val reactNativeView = currentActivity?.findViewById<View>(android.R.id.content)
2526
val viewToReset = reactNativeView?.let { ReactFindViewUtil.findView(it, nativeId) }

0 commit comments

Comments
 (0)