зеркало из https://github.com/mozilla/gecko-dev.git
Bug 698114 - Don't rebuild the app on orientation changes. r=blassey
This commit is contained in:
Родитель
c9390e22cd
Коммит
fb5ee6d00f
|
@ -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 {
|
||||
|
|
Загрузка…
Ссылка в новой задаче