Commit 52df6198 by Sebastián Katzer

Convert indentations to spaces.

parent c38e0143
...@@ -26,32 +26,32 @@ import android.content.SharedPreferences; ...@@ -26,32 +26,32 @@ import android.content.SharedPreferences;
*/ */
public class LocalNotificationRestore extends BroadcastReceiver { public class LocalNotificationRestore extends BroadcastReceiver {
@Override @Override
public void onReceive(Context context, Intent intent) { public void onReceive(Context context, Intent intent) {
String pluginName = LocalNotification.PLUGIN_NAME; String pluginName = LocalNotification.PLUGIN_NAME;
if (LocalNotification.cordova == null) { if (LocalNotification.cordova == null) {
return; return;
} }
// Obtain alarm details form Shared Preferences // Obtain alarm details form Shared Preferences
SharedPreferences alarms = context.getSharedPreferences(pluginName, Context.MODE_PRIVATE); SharedPreferences alarms = context.getSharedPreferences(pluginName, Context.MODE_PRIVATE);
Set<String> alarmIds = alarms.getAll().keySet(); Set<String> alarmIds = alarms.getAll().keySet();
/* /*
* For each alarm, parse its alarm options and register is again with * For each alarm, parse its alarm options and register is again with
* the Alarm Manager * the Alarm Manager
*/ */
for (String alarmId : alarmIds) { for (String alarmId : alarmIds) {
LocalNotificationOptions options; LocalNotificationOptions options;
JSONObject args; JSONObject args;
try { try {
args = new JSONObject(alarms.getString(alarmId, "")); args = new JSONObject(alarms.getString(alarmId, ""));
options = new LocalNotificationOptions(args, context); options = new LocalNotificationOptions(args, context);
LocalNotification.add(options); LocalNotification.add(options);
} catch (JSONException e) {} } 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