|
@@ -52,6 +52,10 @@ abstract public class AbstractClickReceiver extends Activity {
|
|
|
Intent intent = getIntent();
|
|
Intent intent = getIntent();
|
|
|
Bundle bundle = intent.getExtras();
|
|
Bundle bundle = intent.getExtras();
|
|
|
Context context = getApplicationContext();
|
|
Context context = getApplicationContext();
|
|
|
|
|
+
|
|
|
|
|
+ if (bundle == null)
|
|
|
|
|
+ return;
|
|
|
|
|
+
|
|
|
int toastId = bundle.getInt(Notification.EXTRA_ID);
|
|
int toastId = bundle.getInt(Notification.EXTRA_ID);
|
|
|
Notification toast = Manager.getInstance(context).get(toastId);
|
|
Notification toast = Manager.getInstance(context).get(toastId);
|
|
|
|
|
|
|
@@ -97,6 +101,9 @@ abstract public class AbstractClickReceiver extends Activity {
|
|
|
.getPackageManager()
|
|
.getPackageManager()
|
|
|
.getLaunchIntentForPackage(pkgName);
|
|
.getLaunchIntentForPackage(pkgName);
|
|
|
|
|
|
|
|
|
|
+ if (intent == null)
|
|
|
|
|
+ return;
|
|
|
|
|
+
|
|
|
intent.addFlags(
|
|
intent.addFlags(
|
|
|
FLAG_ACTIVITY_REORDER_TO_FRONT | FLAG_ACTIVITY_SINGLE_TOP);
|
|
FLAG_ACTIVITY_REORDER_TO_FRONT | FLAG_ACTIVITY_SINGLE_TOP);
|
|
|
|
|
|