Trying to avoid strings when using Intent
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Tue, 18 Nov 2014 03:29:39 +0000 (04:29 +0100)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Tue, 18 Nov 2014 03:29:39 +0000 (04:29 +0100)
app/src/main/java/name/gumartinm/weather/information/boot/BootReceiver.java

index c900b6a..f8a356f 100644 (file)
@@ -32,7 +32,7 @@ public class BootReceiver extends BroadcastReceiver {
     @Override
     public void onReceive(final Context context, final Intent intent) {
 
-        if (intent.getAction().equals("android.intent.action.BOOT_COMPLETED")) {
+        if (intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)) {
                
                // Update Time Rate
             final SharedPreferences sharedPreferences = PreferenceManager