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

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 {
// but this would mean every activity would have to set the right theme
if(dark){
//setTheme(R.style.darkTheme);
setTheme(R.style.darkTheme);
Log.e("Mike's log", "BaseThemeActivity: dark");
}else{
//setTheme(R.style.AppTheme);
setTheme(R.style.AppTheme);
Log.e("Mike's log", "BaseThemeActivity: light");
}
super.onCreate(bundle);
......
......@@ -40,7 +40,6 @@ public class MainActivity extends BaseThemeActivity implements MainView {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setTheme(R.style.darkTheme);
setContentView(R.layout.activity_main);
// 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