abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/Keyboard2View.java
diff options
context:
space:
mode:
authorJules Aguillon2024-02-10 18:03:09 +0100
committerJules Aguillon2024-02-10 18:10:49 +0100
commitf4d88cc0876ec29ff46dbda0159168ebee637afb (patch)
tree72c96a25e03f187307c1e738ca4aeb990ce3ba85 /srcs/juloo.keyboard2/Keyboard2View.java
parentd5676d683f031a2d23f4e01e0ada0afd58dc9b89 (diff)
downloadunexpected-keyboard-f4d88cc0876ec29ff46dbda0159168ebee637afb.tar.gz
unexpected-keyboard-f4d88cc0876ec29ff46dbda0159168ebee637afb.zip
Fix various linter warnings
Among others: - Use `apply` instead of `commit` when saving shared preferences. - Avoid inlined Api - Remove unused resources
Diffstat (limited to 'srcs/juloo.keyboard2/Keyboard2View.java')
-rw-r--r--srcs/juloo.keyboard2/Keyboard2View.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/srcs/juloo.keyboard2/Keyboard2View.java b/srcs/juloo.keyboard2/Keyboard2View.java
index 42c93ca..fb95412 100644
--- a/srcs/juloo.keyboard2/Keyboard2View.java
+++ b/srcs/juloo.keyboard2/Keyboard2View.java
@@ -77,12 +77,14 @@ public class Keyboard2View extends View
return;
// The intermediate Window is a [Dialog].
Window w = getParentWindow(context);
+ w.setNavigationBarColor(_theme.colorNavBar);
+ if (VERSION.SDK_INT < 26)
+ return;
int uiFlags = getSystemUiVisibility();
if (_theme.isLightNavBar)
uiFlags |= View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR;
else
uiFlags &= ~View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR;
- w.setNavigationBarColor(_theme.colorNavBar);
setSystemUiVisibility(uiFlags);
}