Skip to content

Commit

Permalink
set force night mode
Browse files Browse the repository at this point in the history
  • Loading branch information
bmx666 committed Jul 20, 2023
1 parent 1b98f64 commit 771a74f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/main/java/com/midisheetmusic/SplashActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import androidx.annotation.NonNull;
import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.app.AppCompatDelegate;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import androidx.core.splashscreen.SplashScreen;
Expand All @@ -38,6 +39,7 @@ public class SplashActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);
splashScreen = SplashScreen.installSplashScreen(this);
super.onCreate(savedInstanceState);
loadImages();
Expand Down

0 comments on commit 771a74f

Please sign in to comment.