Fix singleTop definitions
This commit is contained in:
@@ -94,6 +94,7 @@
|
|||||||
android:icon="@mipmap/ic_launcher"
|
android:icon="@mipmap/ic_launcher"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:theme="@style/Theme.Keychain.Light">
|
android:theme="@style/Theme.Keychain.Light">
|
||||||
|
<!-- singleTop for NFC dispatch, see SecurityTokenOperationActivity -->
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.MainActivity"
|
android:name=".ui.MainActivity"
|
||||||
android:configChanges="orientation|screenSize|keyboardHidden|keyboard"
|
android:configChanges="orientation|screenSize|keyboardHidden|keyboard"
|
||||||
@@ -105,6 +106,7 @@
|
|||||||
<category android:name="android.intent.category.LAUNCHER" />
|
<category android:name="android.intent.category.LAUNCHER" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
|
<!-- singleTop for NFC dispatch, see SecurityTokenOperationActivity -->
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.CreateKeyActivity"
|
android:name=".ui.CreateKeyActivity"
|
||||||
android:allowTaskReparenting="true"
|
android:allowTaskReparenting="true"
|
||||||
@@ -137,7 +139,7 @@
|
|||||||
android:name=".ui.linked.LinkedIdWizard"
|
android:name=".ui.linked.LinkedIdWizard"
|
||||||
android:configChanges="orientation|screenSize|keyboardHidden|keyboard"
|
android:configChanges="orientation|screenSize|keyboardHidden|keyboard"
|
||||||
android:label="@string/title_linked_create"
|
android:label="@string/title_linked_create"
|
||||||
android:parentActivityName=".ui.ViewKeyActivity"/>
|
android:parentActivityName=".ui.ViewKeyActivity" />
|
||||||
<!-- NOTE: Dont use configChanges for QR Code view! We use a different layout for landscape -->
|
<!-- NOTE: Dont use configChanges for QR Code view! We use a different layout for landscape -->
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.QrCodeViewActivity"
|
android:name=".ui.QrCodeViewActivity"
|
||||||
@@ -536,8 +538,7 @@
|
|||||||
<activity
|
<activity
|
||||||
android:name=".ui.ImportKeysActivity"
|
android:name=".ui.ImportKeysActivity"
|
||||||
android:configChanges="orientation|screenSize|keyboardHidden|keyboard"
|
android:configChanges="orientation|screenSize|keyboardHidden|keyboard"
|
||||||
android:label="@string/title_import_keys"
|
android:label="@string/title_import_keys">
|
||||||
android:launchMode="singleTop">
|
|
||||||
|
|
||||||
<!-- VIEW with mimeType: Allows to import keys (attached to emails) from email apps -->
|
<!-- VIEW with mimeType: Allows to import keys (attached to emails) from email apps -->
|
||||||
<intent-filter android:label="@string/intent_import_key">
|
<intent-filter android:label="@string/intent_import_key">
|
||||||
@@ -796,18 +797,15 @@
|
|||||||
<activity
|
<activity
|
||||||
android:name=".remote.ui.RemoteServiceActivity"
|
android:name=".remote.ui.RemoteServiceActivity"
|
||||||
android:exported="false"
|
android:exported="false"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name" />
|
||||||
android:launchMode="singleTop" />
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".remote.ui.SelectSignKeyIdActivity"
|
android:name=".remote.ui.SelectSignKeyIdActivity"
|
||||||
android:exported="false"
|
android:exported="false"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name" />
|
||||||
android:launchMode="singleTop" />
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".remote.ui.SelectAllowedKeysActivity"
|
android:name=".remote.ui.SelectAllowedKeysActivity"
|
||||||
android:exported="false"
|
android:exported="false"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name" />
|
||||||
android:launchMode="singleTop" />
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".remote.ui.AppSettingsActivity"
|
android:name=".remote.ui.AppSettingsActivity"
|
||||||
android:configChanges="orientation|screenSize|keyboardHidden|keyboard"
|
android:configChanges="orientation|screenSize|keyboardHidden|keyboard"
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ import org.sufficientlysecure.keychain.keyimport.ImportKeysListEntry;
|
|||||||
import org.sufficientlysecure.keychain.keyimport.ParcelableKeyRing;
|
import org.sufficientlysecure.keychain.keyimport.ParcelableKeyRing;
|
||||||
import org.sufficientlysecure.keychain.operations.results.ImportKeyResult;
|
import org.sufficientlysecure.keychain.operations.results.ImportKeyResult;
|
||||||
import org.sufficientlysecure.keychain.service.ImportKeyringParcel;
|
import org.sufficientlysecure.keychain.service.ImportKeyringParcel;
|
||||||
import org.sufficientlysecure.keychain.ui.base.BaseSecurityTokenNfcActivity;
|
import org.sufficientlysecure.keychain.ui.base.BaseActivity;
|
||||||
import org.sufficientlysecure.keychain.ui.base.CryptoOperationHelper;
|
import org.sufficientlysecure.keychain.ui.base.CryptoOperationHelper;
|
||||||
import org.sufficientlysecure.keychain.ui.util.KeyFormattingUtils;
|
import org.sufficientlysecure.keychain.ui.util.KeyFormattingUtils;
|
||||||
import org.sufficientlysecure.keychain.ui.util.Notify;
|
import org.sufficientlysecure.keychain.ui.util.Notify;
|
||||||
@@ -48,7 +48,7 @@ import org.sufficientlysecure.keychain.util.Preferences;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
public class ImportKeysActivity extends BaseSecurityTokenNfcActivity
|
public class ImportKeysActivity extends BaseActivity
|
||||||
implements CryptoOperationHelper.Callback<ImportKeyringParcel, ImportKeyResult> {
|
implements CryptoOperationHelper.Callback<ImportKeyringParcel, ImportKeyResult> {
|
||||||
|
|
||||||
public static final String ACTION_IMPORT_KEY = OpenKeychainIntents.IMPORT_KEY;
|
public static final String ACTION_IMPORT_KEY = OpenKeychainIntents.IMPORT_KEY;
|
||||||
@@ -118,14 +118,6 @@ public class ImportKeysActivity extends BaseSecurityTokenNfcActivity
|
|||||||
setContentView(R.layout.import_keys_activity);
|
setContentView(R.layout.import_keys_activity);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onNewIntent(Intent intent) {
|
|
||||||
super.onNewIntent(intent);
|
|
||||||
setIntent(intent);
|
|
||||||
// new Intent, so onResumeFragments needs to handle it with handleActions(Intent)
|
|
||||||
mFreshIntent = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onResumeFragments() {
|
protected void onResumeFragments() {
|
||||||
super.onResumeFragments();
|
super.onResumeFragments();
|
||||||
@@ -411,12 +403,6 @@ public class ImportKeysActivity extends BaseSecurityTokenNfcActivity
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void onNfcPostExecute() {
|
|
||||||
// either way, finish after NFC AsyncTask
|
|
||||||
finish();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onActivityResult(int requestCode, int resultCode, Intent data) {
|
public void onActivityResult(int requestCode, int resultCode, Intent data) {
|
||||||
if (mOperationHelper != null &&
|
if (mOperationHelper != null &&
|
||||||
|
|||||||
Reference in New Issue
Block a user