Commit 52df6198 by Sebastián Katzer

Convert indentations to spaces.

parent c38e0143
......@@ -26,32 +26,32 @@ import android.content.SharedPreferences;
*/
public class LocalNotificationRestore extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
String pluginName = LocalNotification.PLUGIN_NAME;
if (LocalNotification.cordova == null) {
return;
}
// Obtain alarm details form Shared Preferences
SharedPreferences alarms = context.getSharedPreferences(pluginName, Context.MODE_PRIVATE);
Set<String> alarmIds = alarms.getAll().keySet();
/*
* For each alarm, parse its alarm options and register is again with
* the Alarm Manager
*/
for (String alarmId : alarmIds) {
LocalNotificationOptions options;
JSONObject args;
try {
args = new JSONObject(alarms.getString(alarmId, ""));
options = new LocalNotificationOptions(args, context);
LocalNotification.add(options);
} catch (JSONException e) {}
}
}
@Override
public void onReceive(Context context, Intent intent) {
String pluginName = LocalNotification.PLUGIN_NAME;
if (LocalNotification.cordova == null) {
return;
}
// Obtain alarm details form Shared Preferences
SharedPreferences alarms = context.getSharedPreferences(pluginName, Context.MODE_PRIVATE);
Set<String> alarmIds = alarms.getAll().keySet();
/*
* For each alarm, parse its alarm options and register is again with
* the Alarm Manager
*/
for (String alarmId : alarmIds) {
LocalNotificationOptions options;
JSONObject args;
try {
args = new JSONObject(alarms.getString(alarmId, ""));
options = new LocalNotificationOptions(args, context);
LocalNotification.add(options);
} catch (JSONException e) {}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment