diff options
| author | TreeHugger Robot <treehugger-gerrit@google.com> | 2019-04-25 17:52:42 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2019-04-25 17:52:42 +0000 |
| commit | 0caa9551192f76d8613e8e1993bda52479967c5b (patch) | |
| tree | b8849b0ab892ca3d74cba12a4ee13f6eaa123da6 | |
| parent | 5ef95b451579bd3deb425b55be7567596a1f2718 (diff) | |
| parent | dbeac65afa37ec439dffd561f59f6a534ce4ded4 (diff) | |
| download | android_development-0caa9551192f76d8613e8e1993bda52479967c5b.tar.gz android_development-0caa9551192f76d8613e8e1993bda52479967c5b.tar.bz2 android_development-0caa9551192f76d8613e8e1993bda52479967c5b.zip | |
Merge "Disable navbar contrast for ThemedNavBarKeyboard" into qt-dev
| -rw-r--r-- | samples/ThemedNavBarKeyboard/src/com/example/android/themednavbarkeyboard/ThemedNavBarKeyboard.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/samples/ThemedNavBarKeyboard/src/com/example/android/themednavbarkeyboard/ThemedNavBarKeyboard.java b/samples/ThemedNavBarKeyboard/src/com/example/android/themednavbarkeyboard/ThemedNavBarKeyboard.java index b2b19d52c..6b33f3fee 100644 --- a/samples/ThemedNavBarKeyboard/src/com/example/android/themednavbarkeyboard/ThemedNavBarKeyboard.java +++ b/samples/ThemedNavBarKeyboard/src/com/example/android/themednavbarkeyboard/ThemedNavBarKeyboard.java @@ -57,6 +57,15 @@ public class ThemedNavBarKeyboard extends InputMethodService { private KeyboardLayoutView mLayout; @Override + public void onCreate() { + super.onCreate(); + if (BuildCompat.EFFECTIVE_SDK_INT > Build.VERSION_CODES.P) { + // Disable contrast for extended navbar gradient. + getWindow().getWindow().setNavigationBarContrastEnforced(false); + } + } + + @Override public View onCreateInputView() { mLayout = new KeyboardLayoutView(this, getWindow().getWindow()); return mLayout; |
