Bug 698114 - Don't rebuild the app on orientation changes. r=blassey

This commit is contained in:
Wes Johnston 2011-10-31 15:03:37 -07:00
parent 2abbfa8b96
commit fe3bde6ccc
3 changed files with 1 additions and 23 deletions

View File

@ -44,7 +44,7 @@
<activity android:name="App"
android:label="@MOZ_APP_DISPLAYNAME@"
android:configChanges="keyboard|keyboardHidden|mcc|mnc"
android:configChanges="keyboard|keyboardHidden|mcc|mnc|orientation"
android:windowSoftInputMode="stateUnspecified|adjustResize"
android:launchMode="singleTask"
android:theme="@style/GreyTheme">

View File

@ -1276,12 +1276,6 @@ abstract public class GeckoApp
onNewIntent(getIntent());
registerReceiver(mConnectivityReceiver, mConnectivityFilter);
GeckoAppShell.getHandler().post(new Runnable() {
public void run() {
GeckoAppShell.getPromptService().onResume();
}
});
}
@Override
@ -1331,12 +1325,6 @@ abstract public class GeckoApp
if (isFinishing())
GeckoAppShell.sendEventToGecko(new GeckoEvent(GeckoEvent.ACTIVITY_SHUTDOWN));
GeckoAppShell.getHandler().post(new Runnable() {
public void run() {
GeckoAppShell.getPromptService().onDestroy();
}
});
if (mTabsTray != null && mTabsTray.isShowing()) {
hideTabs();
mTabsTray = null;

View File

@ -237,16 +237,6 @@ public class PromptService implements OnClickListener, OnCancelListener, OnItemC
mDialog.show();
}
public void onDestroy() {
if (mDialog != null)
mDialog.dismiss();
}
public void onResume() {
if (mDialog != null)
mDialog.show();
}
public void onClick(DialogInterface aDialog, int aWhich) {
JSONObject ret = new JSONObject();
try {