Skip to content

Commit

Permalink
Activate Library
Browse files Browse the repository at this point in the history
  • Loading branch information
Your NameerliteHq committed Jan 21, 2021
1 parent 1a470b5 commit 533ba63
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion themelite/src/main/java/com/erlite/themelite/ThemeLite.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class ThemeLite {
SharedPreferences sharedPreferences;
SharedPreferences.Editor editor;
public int setTheme;


public ThemeLite(Context context){

Expand All @@ -36,6 +36,10 @@ public void saveTheme(Context context){

}

public void setTheme(){
AppCompatDelegate.setDefaultNightMode(setTheme);
}

public void light(){
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
}
Expand Down

0 comments on commit 533ba63

Please sign in to comment.