mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 06:17:57 +01:00 
			
		
		
		
	Fix status/navigation bar colors (fixes #2858)
This commit is contained in:
		| @@ -37,10 +37,6 @@ class WebViewActivity : BaseActivity() { | ||||
|         binding = WebviewActivityBinding.inflate(layoutInflater) | ||||
|         setContentView(binding.root) | ||||
|  | ||||
|         // Manually override status bar color since it's normally transparent with the app themes | ||||
|         // This is needed to hide the app bar when it scrolls up | ||||
|         window.statusBarColor = getResourceColor(R.attr.colorPrimaryDark) | ||||
|  | ||||
|         title = intent.extras?.getString(TITLE_KEY) | ||||
|         setSupportActionBar(binding.toolbar) | ||||
|         supportActionBar?.setDisplayHomeAsUpEnabled(true) | ||||
|   | ||||
| @@ -54,10 +54,6 @@ open class SimpleNavigationView @JvmOverloads constructor( | ||||
|                     R.styleable.NavigationView_elevation, 0).toFloat()) | ||||
|         } | ||||
|  | ||||
|         @Suppress("DEPRECATION") | ||||
|         ViewCompat.setFitsSystemWindows(this, | ||||
|                 a.getBoolean(R.styleable.NavigationView_android_fitsSystemWindows, false)) | ||||
|  | ||||
|         maxWidth = a.getDimensionPixelSize(R.styleable.NavigationView_android_maxWidth, 0) | ||||
|  | ||||
|         a.recycle() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user