Fixed crash when changing theme
Apparently, recreate() brings RxJava in a strange state where errors are directly thrown instead of relaying them to the error callback. Because of a race condition in ItemDescriptionFragment.loadData, this throws a NPE.
This commit is contained in:
parent
f48c75aa83
commit
d322cc1e8e
|
@ -317,9 +317,8 @@ public class MainActivity extends CastEnabledActivity {
|
|||
RatingDialog.init(this);
|
||||
|
||||
if (lastTheme != UserPreferences.getNoTitleTheme()) {
|
||||
// Nav drawer is empty for half a second after recreating. Don't confuse users with that.
|
||||
drawerLayout.closeDrawer(navDrawer);
|
||||
recreate();
|
||||
finish();
|
||||
startActivity(new Intent(this, MainActivity.class));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue