Fix black screen issue when user press back key.
Black screen flash is observed when BrowserActivity is launched
from intent and when user press back key. It turns out that this
was due to calling 'finish()' on activity. The correct behaviour
is to put activity in background which also fixes the issue.
Change-Id: I2c3d9547cfc7d357264401da902e723e44173b12
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java
index 652755b..af06161 100644
--- a/src/com/android/browser/Controller.java
+++ b/src/com/android/browser/Controller.java
@@ -3163,9 +3163,6 @@
.hasFeature(BrowserConfig.Feature.EXIT_DIALOG)) {
showExitDialog(mActivity);
} else {
- if ((current.getAppId() != null) || current.closeOnBack()) {
- closeCurrentTab(true);
- }
/*
* Instead of finishing the activity, simply push this to the back
* of the stack and let ActivityManager to choose the foreground