mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 01:08:50 -06:00
Use dark theme in settings window. (#655)
This commit is contained in:
@@ -23,17 +23,25 @@ import android.os.*;
|
||||
|
||||
import org.isoron.androidbase.activities.*;
|
||||
import org.isoron.androidbase.utils.*;
|
||||
import org.isoron.uhabits.R;
|
||||
import org.isoron.uhabits.*;
|
||||
import org.isoron.uhabits.activities.*;
|
||||
|
||||
/**
|
||||
* Activity that allows the user to view and modify the app settings.
|
||||
*/
|
||||
public class SettingsActivity extends BaseActivity
|
||||
{
|
||||
private AndroidThemeSwitcher themeSwitcher;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState)
|
||||
{
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
HabitsApplicationComponent compoenent = ((HabitsApplication) getApplication()).getComponent();
|
||||
themeSwitcher = new AndroidThemeSwitcher(this, compoenent.getPreferences());
|
||||
themeSwitcher.apply();
|
||||
|
||||
setContentView(R.layout.settings_activity);
|
||||
setupActionBarColor();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user