OpenDelta: we dont need sticky broadcasts

Change-Id: I9a3a80748d96771a9d608560283c8c4226cd8dc3
This commit is contained in:
maxwen 2019-12-31 01:54:45 +01:00
parent d97de6005f
commit bda703a4b7
3 changed files with 3 additions and 4 deletions

View File

@ -13,7 +13,6 @@
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.ACCESS_CACHE_FILESYSTEM" />

View File

@ -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);
}
}
}

View File

@ -399,7 +399,7 @@ OnWantUpdateCheckListener, OnSharedPreferenceChangeListener {
if (ms != null)
i.putExtra(EXTRA_MS, ms);
sendStickyBroadcast(i);
sendBroadcast(i);
}
@Override