Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
whats-open-android
Commits
6d068974
Commit
6d068974
authored
Oct 04, 2018
by
michael lundquist
Browse files
Adding a minor bug fix.
parent
a380373c
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/srct/whatsopen/views/activities/BaseThemeActivity.java
View file @
6d068974
...
...
@@ -29,14 +29,14 @@ public abstract class BaseThemeActivity extends AppCompatActivity {
boolean
dark
=
prefs
.
getBoolean
(
"dark_theme"
,
false
);
// look at the udacity course. In this section you might want to reload,
// but this would mean every activity would have to set the right theme
Log
.
e
(
"BaseThemeActivity"
,
".onCreate Recreate called?"
);
Log
.
d
(
"BaseThemeActivity"
,
".onCreate Recreate called?"
);
if
(
dark
){
setTheme
(
R
.
style
.
darkTheme
);
Log
.
d
(
"BaseThemeActivity"
,
".onCreate() Theme is now dark"
);
}
else
{
setTheme
(
R
.
style
.
AppTheme
);
Log
.
e
(
"BaseThemeActivity"
,
".onCreate() Theme is now light"
);
Log
.
d
(
"BaseThemeActivity"
,
".onCreate() Theme is now light"
);
}
super
.
onCreate
(
bundle
);
}
...
...
@@ -58,9 +58,9 @@ public abstract class BaseThemeActivity extends AppCompatActivity {
}
else
if
(
actTheme
==
R
.
style
.
AppTheme
&&
dark
){
Log
.
d
(
"BaseThemeActivity"
,
".onStart calling recreate to set to dark"
);
recreate
();
}
else
{
super
.
onStart
();
}
super
.
onStart
();
}
...
...
app/src/main/java/srct/whatsopen/views/activities/SettingsActivity.java
View file @
6d068974
...
...
@@ -11,6 +11,7 @@ import android.support.v7.widget.Toolbar;
import
android.util.Log
;
import
android.view.Menu
;
import
android.view.MenuItem
;
import
android.widget.Toast
;
import
butterknife.ButterKnife
;
import
srct.whatsopen.MyApplication
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment