mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-06 17:25:05 -05:00
temporary fix for nullpointer on orientation change in import activity
This commit is contained in:
parent
82b0fba47d
commit
b78a564de3
@ -254,6 +254,7 @@
|
||||
android:label="@string/title_certify_key" />
|
||||
<activity
|
||||
android:name=".ui.ImportKeysActivity"
|
||||
android:configChanges="orientation|screenSize|keyboardHidden|keyboard"
|
||||
android:label="@string/title_import_keys"
|
||||
android:launchMode="singleTop"
|
||||
android:windowSoftInputMode="stateHidden">
|
||||
|
@ -136,7 +136,7 @@ public class ImportKeysListFragment extends ListFragment implements
|
||||
getLoaderManager().initLoader(LOADER_ID_BYTES, null, this);
|
||||
}
|
||||
|
||||
if (mServerQuery != null) {
|
||||
if (mServerQuery != null && mKeyServer != null) {
|
||||
// Start out with a progress indicator.
|
||||
setListShown(false);
|
||||
|
||||
@ -165,14 +165,19 @@ public class ImportKeysListFragment extends ListFragment implements
|
||||
mServerQuery = serverQuery;
|
||||
mKeyServer = keyServer;
|
||||
|
||||
// Start out with a progress indicator.
|
||||
setListShown(false);
|
||||
if (mKeyBytes != null || mDataUri != null) {
|
||||
// Start out with a progress indicator.
|
||||
setListShown(false);
|
||||
|
||||
if (mKeyBytes != null || mDataUri != null)
|
||||
getLoaderManager().restartLoader(LOADER_ID_BYTES, null, this);
|
||||
}
|
||||
|
||||
if (mServerQuery != null && mKeyServer != null) {
|
||||
// Start out with a progress indicator.
|
||||
setListShown(false);
|
||||
|
||||
if (mServerQuery != null && mKeyServer != null)
|
||||
getLoaderManager().restartLoader(LOADER_ID_SERVER_QUERY, null, this);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user