mirror of
https://github.com/Nezumi-2711/Foodify.git
synced 2026-09-22 13:38:41 +00:00
Remove light mode
This commit is contained in:
@@ -3,6 +3,8 @@ package com.capstone.foodify.Activity;
|
||||
import android.annotation.SuppressLint;
|
||||
import android.os.Bundle;
|
||||
import android.view.MenuItem;
|
||||
|
||||
import androidx.appcompat.app.AppCompatDelegate;
|
||||
import androidx.core.splashscreen.SplashScreen;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
@@ -25,6 +27,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
SplashScreen.installSplashScreen(this);
|
||||
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
|
||||
setContentView(R.layout.activity_main);
|
||||
initComponent();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user