Skip to content

Commit

Permalink
refractor: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
axel358 committed Feb 8, 2024
1 parent 99a07b9 commit 51f203a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/cu/axel/smartdock/utils/AppUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ object AppUtils {
val statusHeight = DeviceUtils.getStatusBarHeight(context)
val navHeight = DeviceUtils.getNavBarHeight(context)
val diff = if (dockHeight - navHeight > 0) dockHeight - navHeight else 0
Toast.makeText(context, dockHeight.toString() + " " + navHeight + " " + diff.toString(), Toast.LENGTH_LONG).show()

val usableHeight = if (Build.VERSION.SDK_INT > 31 && sharedPreferences.getBoolean("navbar_fix", true))
deviceHeight - diff - DeviceUtils.getStatusBarHeight(context)
else
Expand Down

0 comments on commit 51f203a

Please sign in to comment.