mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-24 07:58:50 -05:00
API fixes
This commit is contained in:
parent
857fc43873
commit
ef30d842d8
@ -151,9 +151,7 @@
|
||||
<action android:name="org.sufficientlysecure.keychain.action.ENCRYPT_DATA" />
|
||||
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
|
||||
<data android:scheme="file" />
|
||||
<data android:scheme="content" />
|
||||
<data android:mimeType="*/*" />
|
||||
</intent-filter>
|
||||
<!-- Android's Send Action -->
|
||||
<intent-filter android:label="@string/intent_send_encrypt">
|
||||
|
@ -51,7 +51,7 @@ import java.util.Set;
|
||||
public class EncryptFileActivity extends DrawerActivity implements EncryptActivityInterface {
|
||||
|
||||
/* Intents */
|
||||
public static final String ACTION_ENCRYPT_FILES = OpenKeychainIntents.ENCRYPT_DATA;
|
||||
public static final String ACTION_ENCRYPT_DATA = OpenKeychainIntents.ENCRYPT_DATA;
|
||||
|
||||
// enables ASCII Armor for file encryption when uri is given
|
||||
public static final String EXTRA_ASCII_ARMOR = OpenKeychainIntents.ENCRYPT_EXTRA_ASCII_ARMOR;
|
||||
@ -371,7 +371,7 @@ public class EncryptFileActivity extends DrawerActivity implements EncryptActivi
|
||||
setContentView(R.layout.encrypt_file_activity);
|
||||
|
||||
// if called with an intent action, do not init drawer navigation
|
||||
if (ACTION_ENCRYPT_FILES.equals(getIntent().getAction())) {
|
||||
if (ACTION_ENCRYPT_DATA.equals(getIntent().getAction())) {
|
||||
// lock drawer
|
||||
deactivateDrawerNavigation();
|
||||
// TODO: back button to key?
|
||||
|
@ -328,7 +328,7 @@ public class KeyListFragment extends LoaderFragment
|
||||
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
|
||||
protected void encrypt(ActionMode mode, long[] masterKeyIds) {
|
||||
Intent intent = new Intent(getActivity(), EncryptFileActivity.class);
|
||||
intent.setAction(EncryptFileActivity.ACTION_ENCRYPT_FILES);
|
||||
intent.setAction(EncryptFileActivity.ACTION_ENCRYPT_DATA);
|
||||
intent.putExtra(EncryptFileActivity.EXTRA_ENCRYPTION_KEY_IDS, masterKeyIds);
|
||||
// used instead of startActivity set actionbar based on callingPackage
|
||||
startActivityForResult(intent, 0);
|
||||
|
@ -295,7 +295,7 @@ public class ViewKeyMainFragment extends LoaderFragment implements
|
||||
intent.putExtra(EncryptTextActivity.EXTRA_ENCRYPTION_KEY_IDS, encryptionKeyIds);
|
||||
} else {
|
||||
intent = new Intent(getActivity(), EncryptFileActivity.class);
|
||||
intent.setAction(EncryptFileActivity.ACTION_ENCRYPT_FILES);
|
||||
intent.setAction(EncryptFileActivity.ACTION_ENCRYPT_DATA);
|
||||
intent.putExtra(EncryptFileActivity.EXTRA_ENCRYPTION_KEY_IDS, encryptionKeyIds);
|
||||
}
|
||||
// used instead of startActivity set actionbar based on callingPackage
|
||||
|
Loading…
Reference in New Issue
Block a user