Bug 604491 - Tapping update notification while Fennec isn't running just starts fennec and doesn't offer to download [r=blassey a=blocking-fennec]

This commit is contained in:
Alex Pakhotin
2010-12-10 19:44:23 -08:00
parent 2105da3572
commit 10f056b2ba

View File

@@ -91,7 +91,10 @@ public class NotificationHandler
Intent appIntent = new Intent(Intent.ACTION_MAIN);
appIntent.setClassName(context, "@ANDROID_PACKAGE_NAME@.App");
appIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
appIntent.putExtra("args", "-alert " + alertName + (alertCookie.length() > 0 ? "#" + alertCookie : ""));
try {
Log.i("GeckoAppJava", "startActivity with intent: Action='" + appIntent.getAction() + "'" +
", args='" + appIntent.getStringExtra("args") + "'" );
context.startActivity(appIntent);
} catch (ActivityNotFoundException e) {
Log.e("GeckoAppJava", "NotificationHandler Exception: ", e);