Skip to content

Commit

Permalink
Switch to light mode on first open if e-ink display
Browse files Browse the repository at this point in the history
  • Loading branch information
tanujnotes committed Oct 27, 2023
1 parent 356d523 commit 04f2985
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/java/app/olauncher/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class MainActivity : AppCompatActivity() {

override fun onCreate(savedInstanceState: Bundle?) {
prefs = Prefs(this)
if (isEinkDisplay()) prefs.appTheme = AppCompatDelegate.MODE_NIGHT_NO
AppCompatDelegate.setDefaultNightMode(prefs.appTheme)
super.onCreate(savedInstanceState)
binding = ActivityMainBinding.inflate(layoutInflater)
Expand Down

0 comments on commit 04f2985

Please sign in to comment.