From 32b17ed5d3be5c5fe719e980dd99ad5ffc05ad70 Mon Sep 17 00:00:00 2001 From: Anthony Date: Sat, 4 Mar 2017 21:42:24 -0500 Subject: [PATCH] proper way to reference intent actions --- .../java/com/afollestad/nocknock/receivers/BootReceiver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/afollestad/nocknock/receivers/BootReceiver.java b/app/src/main/java/com/afollestad/nocknock/receivers/BootReceiver.java index 4f5666f..7bb96e5 100644 --- a/app/src/main/java/com/afollestad/nocknock/receivers/BootReceiver.java +++ b/app/src/main/java/com/afollestad/nocknock/receivers/BootReceiver.java @@ -16,7 +16,7 @@ public class BootReceiver extends BroadcastReceiver { @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)) { final Inquiry inq = Inquiry.newInstance(context, MainActivity.DB_NAME).build(false); ServerModel[] models = inq .selectFrom(MainActivity.SITES_TABLE_NAME, ServerModel.class)