Added scrollbars to recyclerview dialog, fixed a crash on Marshmallow caused by casting to AnimatedVectorDrawable instead of AnimatedVectorDrawableCompat, fixed a bug that tinted the status bar blue instead of white/dark on certain devices while in light mode

This commit is contained in:
Deniz Düzgören
2019-08-11 20:25:01 +02:00
parent 60831aa2b2
commit eb758ed077
6 changed files with 11 additions and 6 deletions
@@ -64,6 +64,7 @@ class Main : AppCompatActivity(R.layout.app_bar_main) {
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
window.decorView.systemUiVisibility = View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR
window.statusBarColor = ContextCompat.getColor(this, R.color.colorBackground)
window.navigationBarColor = ContextCompat.getColor(this, R.color.colorBackground)
} else {
window.statusBarColor = ContextCompat.getColor(this, R.color.legacyBlack)