Skip to content

Commit

Permalink
dark mode disable, even for force
Browse files Browse the repository at this point in the history
  • Loading branch information
sabikrahat committed May 1, 2022
1 parent 6bd0f6c commit 3183489
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Binary file modified apk/study-zone.apk
Binary file not shown.
Binary file modified app/release/app-release.apk
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.sabikrahat.studyzone;

import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.app.AppCompatDelegate;

import android.content.Intent;
import android.os.Bundle;
Expand All @@ -16,6 +17,9 @@ protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_welcome);

// for disable force dark mode
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);

if (FirebaseAuth.getInstance().getCurrentUser() != null) {
//check user is available or disable
startActivity(new Intent(WelcomeActivity.this, MainActivity.class));
Expand Down

0 comments on commit 3183489

Please sign in to comment.