gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-android] 02/09: [wallet] Fixed status bar foreground on lig


From: gnunet
Subject: [taler-taler-android] 02/09: [wallet] Fixed status bar foreground on light mode
Date: Tue, 31 Jan 2023 14:39:50 +0100

This is an automated email from the git hooks/post-receive script.

torsten-grote pushed a commit to branch master
in repository taler-android.

commit 9c2537144d0f9ca3c82e3e62447ea989528588cf
Author: Iván Ávalos <avalos@disroot.org>
AuthorDate: Wed Jan 11 21:30:40 2023 -0600

    [wallet] Fixed status bar foreground on light mode
---
 wallet/src/main/java/net/taler/wallet/MainActivity.kt | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/wallet/src/main/java/net/taler/wallet/MainActivity.kt 
b/wallet/src/main/java/net/taler/wallet/MainActivity.kt
index cd07ef8..52db73b 100644
--- a/wallet/src/main/java/net/taler/wallet/MainActivity.kt
+++ b/wallet/src/main/java/net/taler/wallet/MainActivity.kt
@@ -96,10 +96,12 @@ class MainActivity : AppCompatActivity(), 
OnNavigationItemSelectedListener,
 
         // Set status bar color
         val color = SurfaceColors.SURFACE_0.getColor(this)
+        val isLightMode = resources.configuration.uiMode and 
Configuration.UI_MODE_NIGHT_MASK !=
+                Configuration.UI_MODE_NIGHT_YES
         window.statusBarColor = color
         window.navigationBarColor = color
-        insetsController?.isAppearanceLightStatusBars =
-            resources.configuration.uiMode and 
Configuration.UI_MODE_NIGHT_MASK != Configuration.UI_MODE_NIGHT_YES
+        insetsController?.isAppearanceLightStatusBars = isLightMode
+        insetsController?.isAppearanceLightNavigationBars = isLightMode
 
         ui = ActivityMainBinding.inflate(layoutInflater)
         setContentView(ui.root)

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]