From bda703a4b7faa4f45d52a6c73fda09ee86876be9 Mon Sep 17 00:00:00 2001 From: maxwen Date: Tue, 31 Dec 2019 01:54:45 +0100 Subject: [PATCH] OpenDelta: we dont need sticky broadcasts Change-Id: I9a3a80748d96771a9d608560283c8c4226cd8dc3 --- AndroidManifest.xml | 1 - src/eu/chainfire/opendelta/MainActivity.java | 4 ++-- src/eu/chainfire/opendelta/UpdateService.java | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index a3f3d23..d6f7e22 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -13,7 +13,6 @@ - diff --git a/src/eu/chainfire/opendelta/MainActivity.java b/src/eu/chainfire/opendelta/MainActivity.java index 69c6871..b3829cd 100644 --- a/src/eu/chainfire/opendelta/MainActivity.java +++ b/src/eu/chainfire/opendelta/MainActivity.java @@ -722,7 +722,7 @@ public class MainActivity extends Activity { } else { Intent i = new Intent(UpdateService.BROADCAST_INTENT); i.putExtra(UpdateService.EXTRA_STATE, UpdateService.STATE_ERROR_FLASH_FILE); - sendStickyBroadcast(i); + sendBroadcast(i); } } } @@ -793,7 +793,7 @@ public class MainActivity extends Activity { } catch (android.content.ActivityNotFoundException ex) { Intent i = new Intent(UpdateService.BROADCAST_INTENT); i.putExtra(UpdateService.EXTRA_STATE, UpdateService.STATE_ERROR_FLASH_FILE); - sendStickyBroadcast(i); + sendBroadcast(i); } } } diff --git a/src/eu/chainfire/opendelta/UpdateService.java b/src/eu/chainfire/opendelta/UpdateService.java index 5e31084..0de0b0a 100644 --- a/src/eu/chainfire/opendelta/UpdateService.java +++ b/src/eu/chainfire/opendelta/UpdateService.java @@ -399,7 +399,7 @@ OnWantUpdateCheckListener, OnSharedPreferenceChangeListener { if (ms != null) i.putExtra(EXTRA_MS, ms); - sendStickyBroadcast(i); + sendBroadcast(i); } @Override