Skip to content

Commit

Permalink
feat: added QUICKBOOT_POWERON action to intent-filter
Browse files Browse the repository at this point in the history
  • Loading branch information
ekasetiawans committed Sep 21, 2022
1 parent 0f90cc7 commit 46f0817
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -27,6 +27,7 @@

<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
<action android:name="android.intent.action.QUICKBOOT_POWERON"/>
</intent-filter>
</receiver>

Expand Down
Expand Up @@ -12,7 +12,7 @@ public class BootReceiver extends BroadcastReceiver {
@SuppressLint("WakelockTimeout")
@Override
public void onReceive(Context context, Intent intent) {
if (intent.getAction().equals("android.intent.action.BOOT_COMPLETED")) {
if (intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED) || intent.getAction().equals("android.intent.action.QUICKBOOT_POWERON")) {
final Config config = new Config(context);
boolean autoStart = config.isAutoStartOnBoot();
if (autoStart) {
Expand Down

0 comments on commit 46f0817

Please sign in to comment.