Add forgotten docu to a new method

This commit is contained in:
Thialfihar
2015-06-26 15:59:11 +02:00
parent e281fef1f1
commit 17e8b663a8

View File

@@ -63,6 +63,12 @@ public abstract class BaseActivity extends AppCompatActivity {
}
}
/**
* Apply the theme set in preferences if it isn't equal to mCurrentTheme
* anymore or mCurrentTheme hasn't been set yet.
* If a new theme is applied in this method, then return true, so
* the caller can re-create the activity, if need be.
*/
protected boolean changeTheme() {
String newTheme = sPreferences.getTheme();
if (mCurrentTheme != null && mCurrentTheme.equals(newTheme)) {