Commit 4b2e6c32 authored by michael lundquist's avatar michael lundquist
Browse files

Removed a setTheme in MainActivity that I put there for testing. This is now...

Removed a setTheme in MainActivity that I put there for testing. This is now responsive to changes to the dark theme button, but you have to reload the app for them to appear. I might add a finish() so they're applied automatically. Not sure yet.
parent 8c7b68eb
Pipeline #3030 passed with stages
in 3 minutes and 22 seconds
...@@ -17,10 +17,10 @@ public abstract class BaseThemeActivity extends AppCompatActivity { ...@@ -17,10 +17,10 @@ public abstract class BaseThemeActivity extends AppCompatActivity {
// but this would mean every activity would have to set the right theme // but this would mean every activity would have to set the right theme
if(dark){ if(dark){
//setTheme(R.style.darkTheme); setTheme(R.style.darkTheme);
Log.e("Mike's log", "BaseThemeActivity: dark"); Log.e("Mike's log", "BaseThemeActivity: dark");
}else{ }else{
//setTheme(R.style.AppTheme); setTheme(R.style.AppTheme);
Log.e("Mike's log", "BaseThemeActivity: light"); Log.e("Mike's log", "BaseThemeActivity: light");
} }
super.onCreate(bundle); super.onCreate(bundle);
......
...@@ -40,7 +40,6 @@ public class MainActivity extends BaseThemeActivity implements MainView { ...@@ -40,7 +40,6 @@ public class MainActivity extends BaseThemeActivity implements MainView {
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setTheme(R.style.darkTheme);
setContentView(R.layout.activity_main); setContentView(R.layout.activity_main);
// Bind them views // Bind them views
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment