Commit 52054f5d by Sebastián Katzer

Optimized imports

parent 5e191178
...@@ -36,7 +36,6 @@ import org.json.JSONObject; ...@@ -36,7 +36,6 @@ import org.json.JSONObject;
import java.lang.reflect.Method; import java.lang.reflect.Method;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays;
import java.util.List; import java.util.List;
import de.appplant.cordova.plugin.notification.Manager; import de.appplant.cordova.plugin.notification.Manager;
......
...@@ -157,14 +157,14 @@ public class Builder { ...@@ -157,14 +157,14 @@ public class Builder {
if (clearReceiver == null) if (clearReceiver == null)
return; return;
Intent deleteIntent = new Intent(context, clearReceiver) Intent intent = new Intent(context, clearReceiver)
.setAction(options.getIdStr()) .setAction(options.getIdStr())
.putExtra(Options.EXTRA, options.toString()); .putExtra(Options.EXTRA, options.toString());
PendingIntent dpi = PendingIntent.getBroadcast( PendingIntent deleteIntent = PendingIntent.getBroadcast(
context, 0, deleteIntent, PendingIntent.FLAG_UPDATE_CURRENT); context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
builder.setDeleteIntent(dpi); builder.setDeleteIntent(deleteIntent);
} }
/** /**
...@@ -183,10 +183,10 @@ public class Builder { ...@@ -183,10 +183,10 @@ public class Builder {
.putExtra(Options.EXTRA, options.toString()) .putExtra(Options.EXTRA, options.toString())
.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY); .setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
int requestCode = new Random().nextInt(); int reqCode = new Random().nextInt();
PendingIntent contentIntent = PendingIntent.getActivity( PendingIntent contentIntent = PendingIntent.getActivity(
context, requestCode, intent, PendingIntent.FLAG_UPDATE_CURRENT); context, reqCode, intent, PendingIntent.FLAG_UPDATE_CURRENT);
builder.setContentIntent(contentIntent); builder.setContentIntent(contentIntent);
} }
......
...@@ -30,7 +30,6 @@ import android.content.SharedPreferences; ...@@ -30,7 +30,6 @@ import android.content.SharedPreferences;
import org.json.JSONException; import org.json.JSONException;
import org.json.JSONObject; import org.json.JSONObject;
import java.lang.NumberFormatException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.util.List;
......
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