OpenDelta: we dont need sticky broadcasts
Change-Id: I9a3a80748d96771a9d608560283c8c4226cd8dc3
This commit is contained in:
parent
d97de6005f
commit
bda703a4b7
|
@ -13,7 +13,6 @@
|
||||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||||
<uses-permission android:name="android.permission.ACCESS_WIFI_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.CHANGE_WIFI_STATE" />
|
||||||
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
|
|
||||||
<uses-permission android:name="android.permission.INTERNET" />
|
<uses-permission android:name="android.permission.INTERNET" />
|
||||||
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
||||||
<uses-permission android:name="android.permission.ACCESS_CACHE_FILESYSTEM" />
|
<uses-permission android:name="android.permission.ACCESS_CACHE_FILESYSTEM" />
|
||||||
|
|
|
@ -722,7 +722,7 @@ public class MainActivity extends Activity {
|
||||||
} else {
|
} else {
|
||||||
Intent i = new Intent(UpdateService.BROADCAST_INTENT);
|
Intent i = new Intent(UpdateService.BROADCAST_INTENT);
|
||||||
i.putExtra(UpdateService.EXTRA_STATE, UpdateService.STATE_ERROR_FLASH_FILE);
|
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) {
|
} catch (android.content.ActivityNotFoundException ex) {
|
||||||
Intent i = new Intent(UpdateService.BROADCAST_INTENT);
|
Intent i = new Intent(UpdateService.BROADCAST_INTENT);
|
||||||
i.putExtra(UpdateService.EXTRA_STATE, UpdateService.STATE_ERROR_FLASH_FILE);
|
i.putExtra(UpdateService.EXTRA_STATE, UpdateService.STATE_ERROR_FLASH_FILE);
|
||||||
sendStickyBroadcast(i);
|
sendBroadcast(i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -399,7 +399,7 @@ OnWantUpdateCheckListener, OnSharedPreferenceChangeListener {
|
||||||
if (ms != null)
|
if (ms != null)
|
||||||
i.putExtra(EXTRA_MS, ms);
|
i.putExtra(EXTRA_MS, ms);
|
||||||
|
|
||||||
sendStickyBroadcast(i);
|
sendBroadcast(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue