From e5faaabcab7268abdb097885011fa7bb92299bcb Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 30 Jul 2020 01:25:59 -0400 Subject: [PATCH] v0.8.2: fixed news and supporter scenes closing app on back press --- .../shatteredpixeldungeon/scenes/NewsScene.java | 5 +++++ .../shatteredpixeldungeon/scenes/SupporterScene.java | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/NewsScene.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/NewsScene.java index de2fbceee..3df89a2bf 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/NewsScene.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/NewsScene.java @@ -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()){ diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/SupporterScene.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/SupporterScene.java index 9493dc9e9..6a2185a04 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/SupporterScene.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/SupporterScene.java @@ -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;