v0.8.2: fixed news and supporter scenes closing app on back press

This commit is contained in:
Evan Debenham 2020-07-30 01:25:59 -04:00
parent 01ac35b955
commit e5faaabcab
2 changed files with 10 additions and 0 deletions

View File

@ -155,6 +155,11 @@ public class NewsScene extends PixelScene {
}
@Override
protected void onBackPressed() {
ShatteredPixelDungeon.switchNoFade( TitleScene.class );
}
@Override
public void update() {
if (displayingNoArticles && News.articlesAvailable()){

View File

@ -103,6 +103,11 @@ public class SupporterScene extends PixelScene {
}
@Override
protected void onBackPressed() {
ShatteredPixelDungeon.switchNoFade( TitleScene.class );
}
private static class SupporterMessage extends Component {
NinePatch bg;