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