Merge pull request #4242 from ByteHamster/theme-change-crash

Fixed crash when changing theme
This commit is contained in:
H. Lehmann 2020-06-14 19:48:37 +02:00 committed by GitHub
commit ab5a2bcc4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -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();
} }
} }