Skip to content

Commit

Permalink
chore: code review
Browse files Browse the repository at this point in the history
  • Loading branch information
jpudysz committed Feb 27, 2024
1 parent 4f1c8a3 commit 6d3dbc8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion android/src/main/java/com/unistyles/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ class UnistylesConfig(private val reactApplicationContext: ReactApplicationConte
return this.lastLayoutConfig
}

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

Expand Down
1 change: 1 addition & 0 deletions android/src/main/java/com/unistyles/Models.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class Dimensions(var width: Int, var height: Int) {
return "${width}x${height}"
}
}

class Insets(var top: Int, var bottom: Int, var left: Int, var right: Int) {
fun isEqual(insets: Insets): Boolean {
if (this.top != insets.top) {
Expand Down
1 change: 0 additions & 1 deletion android/src/main/java/com/unistyles/UnistylesModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import com.facebook.react.bridge.ReactMethod
import com.facebook.react.modules.core.DeviceEventManagerModule

class UnistylesModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaModule(reactContext), LifecycleEventListener {
// debounce draw listener
private val drawHandler = Handler(Looper.getMainLooper())
private val debounceDuration = 250L
private var runnable: Runnable? = null
Expand Down

0 comments on commit 6d3dbc8

Please sign in to comment.