mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-11-21 09:31:29 -08:00
Add workaround for broken HTC Linkify
This commit is contained in:
1 parent
95768feaab
commit
534c27240e
2 files changed
+19
No files matched your search
@@ -1,5 +1,6 @@
|
||||
* Updated German translations from Meviox
|
||||
* Add Finnish translations from Mika Takala
|
||||
* Add workaround for broken HTC Linkify
|
||||
|
||||
KeePassDroid (1.99.2)
|
||||
* Fix crash on entries without icons set (closes: #484)
|
||||
|
||||
@@ -20,6 +20,9 @@
|
||||
package com.keepassdroid;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.ActivityNotFoundException;
|
||||
import android.content.Intent;
|
||||
|
||||
import com.android.keepass.KeePass;
|
||||
import com.keepassdroid.app.App;
|
||||
|
||||
@@ -41,4 +44,19 @@ public class LockCloseActivity extends LockingActivity {
|
||||
|
||||
}
|
||||
|
||||
/* (non-Javadoc) Workaround for HTC Linkify issues
|
||||
* @see android.app.Activity#startActivity(android.content.Intent)
|
||||
*/
|
||||
@Override
|
||||
public void startActivity(Intent intent) {
|
||||
try {
|
||||
if (intent.getComponent() != null && intent.getComponent().getShortClassName().equals(".HtcLinkifyDispatcherActivity")) {
|
||||
intent.setComponent(null);
|
||||
}
|
||||
super.startActivity(intent);
|
||||
} catch (ActivityNotFoundException e) {
|
||||
/* Catch the bad HTC implementation case */
|
||||
super.startActivity(Intent.createChooser(intent, null));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user