From 444367e8526108cfaeb898d975c35150fc0a7528 Mon Sep 17 00:00:00 2001 From: Manuel Martin Date: Fri, 1 May 2020 18:19:41 +0200 Subject: [PATCH] Fixes #3290 Pico title bar fixes (#3302) * Fixes Pico title bar tint issue * Use setValue for a faster title bar visibility switch --- .../org/mozilla/vrbrowser/ui/viewmodel/WindowViewModel.java | 2 +- app/src/main/res/layout/title_bar.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/common/shared/org/mozilla/vrbrowser/ui/viewmodel/WindowViewModel.java b/app/src/common/shared/org/mozilla/vrbrowser/ui/viewmodel/WindowViewModel.java index f4c50d4f0..322a2ee62 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/ui/viewmodel/WindowViewModel.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/ui/viewmodel/WindowViewModel.java @@ -551,7 +551,7 @@ public MutableLiveData getIsActiveWindow() { } public void setIsActiveWindow(boolean isActiveWindow) { - this.isActiveWindow.postValue(new ObservableBoolean(isActiveWindow)); + this.isActiveWindow.setValue(new ObservableBoolean(isActiveWindow)); } @NonNull diff --git a/app/src/main/res/layout/title_bar.xml b/app/src/main/res/layout/title_bar.xml index 34d9f48e6..860d242f5 100644 --- a/app/src/main/res/layout/title_bar.xml +++ b/app/src/main/res/layout/title_bar.xml @@ -72,6 +72,7 @@ android:paddingEnd="5dp" android:requiresFadingEdge="horizontal" android:singleLine="true" + android:textColor="@color/fog" tools:text="@{viewmodel.titleBarUrl}" />