Skip to content

Commit 6d3dbc8

Browse files
committed
chore: code review
1 parent 4f1c8a3 commit 6d3dbc8

File tree

3 files changed

+1
-2
lines changed

3 files changed

+1
-2
lines changed

android/src/main/java/com/unistyles/Config.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ class UnistylesConfig(private val reactApplicationContext: ReactApplicationConte
4646
return this.lastLayoutConfig
4747
}
4848

49-
@SuppressLint("InternalInsetResource", "DiscouragedApi", "ObsoleteSdkInt")
5049
private fun getAppConfig(): Config {
5150
val fontScale = reactApplicationContext.resources.configuration.fontScale
5251

android/src/main/java/com/unistyles/Models.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class Dimensions(var width: Int, var height: Int) {
1313
return "${width}x${height}"
1414
}
1515
}
16+
1617
class Insets(var top: Int, var bottom: Int, var left: Int, var right: Int) {
1718
fun isEqual(insets: Insets): Boolean {
1819
if (this.top != insets.top) {

android/src/main/java/com/unistyles/UnistylesModule.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import com.facebook.react.bridge.ReactMethod
1616
import com.facebook.react.modules.core.DeviceEventManagerModule
1717

1818
class UnistylesModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaModule(reactContext), LifecycleEventListener {
19-
// debounce draw listener
2019
private val drawHandler = Handler(Looper.getMainLooper())
2120
private val debounceDuration = 250L
2221
private var runnable: Runnable? = null

0 commit comments

Comments
 (0)