From b5e474822ae15f4002b207943982943fb1a3a8d9 Mon Sep 17 00:00:00 2001 From: Braden Farmer Date: Thu, 31 Oct 2019 23:56:39 -0600 Subject: [PATCH] SecondScreen 2.9.1 (release 2) * Reset the saved external display id after a reboot --- app/build.gradle | 2 +- .../java/com/farmerbb/secondscreen/receiver/BootReceiver.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index dffe613..ec08410 100755 --- a/app/build.gradle +++ b/app/build.gradle @@ -33,7 +33,7 @@ android { //noinspection OldTargetApi targetSdkVersion 27 - versionCode 182 + versionCode 183 versionName "2.9.1" resConfigs "en", "es", "fr", "sk", "nl", "it" diff --git a/app/src/main/java/com/farmerbb/secondscreen/receiver/BootReceiver.java b/app/src/main/java/com/farmerbb/secondscreen/receiver/BootReceiver.java index e6b4cdc..809c8a0 100644 --- a/app/src/main/java/com/farmerbb/secondscreen/receiver/BootReceiver.java +++ b/app/src/main/java/com/farmerbb/secondscreen/receiver/BootReceiver.java @@ -50,6 +50,9 @@ public void onReceive(Context context, Intent intent) { U.startService(context, serviceIntent); } + if(prefCurrent.getInt("external_display_id", -1) > 1) + prefCurrent.edit().putInt("external_display_id", 1).apply(); + if(!prefCurrent.getBoolean("not_active", true)) { if(prefMain.getBoolean("safe_mode", false) && !"activity-manager".equals(prefCurrent.getString("ui_refresh", "do-nothing"))