mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 698114 - Don't rebuild the app on orientation changes. r=blassey
This commit is contained in:
parent
2abbfa8b96
commit
fe3bde6ccc
@ -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">
|
||||
|
@ -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;
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user