mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-17 16:30:30 +02:00
Avoid potential crash without storage permissions.
We conditionally create this view.
This commit is contained in:
1 parent
f8c53db503
commit
c3be720eb0
1 file changed
+4
-1
+4
-1
@@ -1050,6 +1050,7 @@ void MainScreen::CreateViews() {
|
||||
leftColumn->Add(new Spacer(new LinearLayoutParams(0.1f)));
|
||||
}
|
||||
} else {
|
||||
scrollAllGames_ = nullptr;
|
||||
if (!showRecent) {
|
||||
leftColumn = new LinearLayout(ORIENT_VERTICAL, new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT, 1.0f));
|
||||
// Just so it's destroyed on recreate.
|
||||
@@ -1203,7 +1204,9 @@ void MainScreen::update() {
|
||||
RecreateViews();
|
||||
lastVertical_ = vertical;
|
||||
}
|
||||
g_Config.fGameListScrollPosition = scrollAllGames_->GetScrollPosition();
|
||||
if (scrollAllGames_) {
|
||||
g_Config.fGameListScrollPosition = scrollAllGames_->GetScrollPosition();
|
||||
}
|
||||
}
|
||||
|
||||
bool MainScreen::UseVerticalLayout() const {
|
||||
|
||||
Reference in new issue
Block a user