Merge "Fix issue #2999757: "Application Redirected" dialogue showing up erratically" into gingerbread

This commit is contained in:
Dianne Hackborn
2010-09-21 00:24:23 -07:00
committed by Android (Google) Code Review

View File

@@ -1104,6 +1104,9 @@ public class ActivityStack {
// Okay we are now going to start a switch, to 'next'. We may first // Okay we are now going to start a switch, to 'next'. We may first
// have to pause the current activity, but this is an important point // have to pause the current activity, but this is an important point
// where we have decided to go to 'next' so keep track of that. // where we have decided to go to 'next' so keep track of that.
// XXX "App Redirected" dialog is getting too many false positives
// at this point, so turn off for now.
if (false) {
if (mLastStartedActivity != null && !mLastStartedActivity.finishing) { if (mLastStartedActivity != null && !mLastStartedActivity.finishing) {
long now = SystemClock.uptimeMillis(); long now = SystemClock.uptimeMillis();
final boolean inTime = mLastStartedActivity.startTime != 0 final boolean inTime = mLastStartedActivity.startTime != 0
@@ -1125,6 +1128,7 @@ public class ActivityStack {
next.startTime = SystemClock.uptimeMillis(); next.startTime = SystemClock.uptimeMillis();
mLastStartedActivity = next; mLastStartedActivity = next;
} }
}
// We need to start pausing the current activity so the top one // We need to start pausing the current activity so the top one
// can be resumed... // can be resumed...