From 6233de2f755d4de3c3b948e91cc183e2344911f3 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 7 Apr 2024 17:02:13 -0400 Subject: [PATCH] v2.4.0: started phasing out the power saver option --- .../shatteredpixeldungeon/windows/WndSettings.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndSettings.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndSettings.java index aafc76e4a..69a04cead 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndSettings.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndSettings.java @@ -253,7 +253,11 @@ public class WndSettings extends WndTabbed { } add(chkFullscreen); - if (DeviceCompat.isAndroid() && PixelScene.maxScreenZoom >= 2) { + //power saver is being slowly phased out, only show it on old (4.3-) android devices + // this is being phased out as the setting is useless on all but very old devices anyway + // and support is going to be dropped for 4.3- in the forseeable future + if (DeviceCompat.isAndroid() && PixelScene.maxScreenZoom >= 2 + && SPDSettings.powerSaver() || !DeviceCompat.supportsFullScreen()) { chkSaver = new CheckBox(Messages.get(this, "saver")) { @Override protected void onClick() {