This commit is contained in:
Aleksander Nowakowski 2015-03-13 16:01:07 +01:00
parent a73c05b562
commit 205edd27c5
1 changed files with 1 additions and 1 deletions

View File

@ -1304,7 +1304,7 @@ public abstract class DfuBaseService extends IntentService {
* read from the application's ATT table, but rather passed as an argument of the "reboot to bootloader" method.
*/
final boolean keepBond = intent.getBooleanExtra(EXTRA_KEEP_BOND, false);
if (keepBond && (fileType & (TYPE_APPLICATION | TYPE_BOOTLOADER)) > 0) {
if (keepBond && (fileType & TYPE_SOFT_DEVICE) == 0) {
sendLogBroadcast(LOG_LEVEL_VERBOSE, "Restarting service...");
updateProgressNotification(PROGRESS_DISCONNECTING);