Merge pull request #4242 from ByteHamster/theme-change-crash
Fixed crash when changing theme
This commit is contained in:
commit
ab5a2bcc4b
|
@ -317,9 +317,8 @@ public class MainActivity extends CastEnabledActivity {
|
||||||
RatingDialog.init(this);
|
RatingDialog.init(this);
|
||||||
|
|
||||||
if (lastTheme != UserPreferences.getNoTitleTheme()) {
|
if (lastTheme != UserPreferences.getNoTitleTheme()) {
|
||||||
// Nav drawer is empty for half a second after recreating. Don't confuse users with that.
|
finish();
|
||||||
drawerLayout.closeDrawer(navDrawer);
|
startActivity(new Intent(this, MainActivity.class));
|
||||||
recreate();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue