fix IntentFilter for PasswordActivity

This commit is contained in:
Philipp Crocoll 2016-11-22 12:38:52 +01:00
parent 0f2f99a98c
commit 14b3c50d52
4 changed files with 18 additions and 1 deletions

View File

@ -72,7 +72,7 @@ namespace keepass2android
LaunchMode = LaunchMode.SingleInstance,
WindowSoftInputMode = SoftInput.AdjustResize,
Theme = "@style/MyTheme_Blue")] /*caution: also contained in AndroidManifest.xml*/
[IntentFilter(new[] { "kp2a.action.PasswordActivity" }, Categories = new[] { Intent.CategoryDefault })]
//CAUTION: don't add intent filters here, they must be set in the manifest xml file
public class PasswordActivity : LockingActivity, IFingerprintAuthCallback
{

View File

@ -86,6 +86,12 @@
<data android:host="*" />
</intent-filter>
<intent-filter>
<action android:name="kp2a.action.PasswordActivity" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter android:label="@string/app_name">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />

View File

@ -76,6 +76,12 @@
<data android:mimeType="application/octet-stream" />
<data android:host="*" />
</intent-filter>
<intent-filter>
<action android:name="kp2a.action.PasswordActivity" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter android:label="@string/app_name">
<action android:name="android.intent.action.SEND" />

View File

@ -61,6 +61,11 @@
<data android:host="*" />
</intent-filter>
<intent-filter>
<action android:name="kp2a.action.PasswordActivity" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter android:label="@string/app_name">
<action android:name="android.intent.action.SEND" />
<action android:name="android.intent.action.SEND_MULTIPLE" />