am 3d22e182: Prevent NPE in recent apps dialog.
Merge commit '3d22e1825b86567048117207ee0654d59fef69a6' into eclair-mr2-plus-aosp * commit '3d22e1825b86567048117207ee0654d59fef69a6': Prevent NPE in recent apps dialog.
This commit is contained in:
@@ -110,8 +110,11 @@ public class RecentApplicationsDialog extends Dialog implements OnClickListener
|
||||
if (b == v) {
|
||||
// prepare a launch intent and send it
|
||||
Intent intent = (Intent)b.getTag();
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY);
|
||||
getContext().startActivity(intent);
|
||||
if (intent != null) {
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY);
|
||||
getContext().startActivity(intent);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
dismiss();
|
||||
|
||||
Reference in New Issue
Block a user