fixed bug: lock database from keyboard was not possible because of wrong action string (after recent modification)

This commit is contained in:
Philipp Crocoll 2014-06-01 06:59:36 +02:00
parent 7c36e29a12
commit 0b87c6f839
2 changed files with 7 additions and 5 deletions

View File

@ -1315,7 +1315,9 @@ public class KP2AKeyboard extends InputMethodService
private void onKp2aLockKeyPressed() {
sendBroadcast(new Intent("keepass2android.lock_database"));
String action = getPackageName()+".lock_database";
android.util.Log.i("KP2A", "sending broadcast with action "+action);
sendBroadcast(new Intent(action));
}

View File

@ -27,15 +27,15 @@ namespace keepass2android
/// <summary>Broadcast this intent to lock the database (with quick unlock if enabled)</summary>
public const String LockDatabase = "keepass2android."+AppNames.PackagePart+"lock_database";
public const String LockDatabase = "keepass2android."+AppNames.PackagePart+".lock_database";
/// <summary>Broadcast this intent to close the database (no quick unlock, full close)</summary>
public const String CloseDatabase = "keepass2android." + AppNames.PackagePart + "close_database";
public const String CloseDatabase = "keepass2android." + AppNames.PackagePart + ".close_database";
/// <summary>This intent will be broadcast once the database has been locked. Sensitive information displayed should be hidden and unloaded.</summary>
public const String DatabaseLocked = "keepass2android." + AppNames.PackagePart + "database_locked";
public const String DatabaseLocked = "keepass2android." + AppNames.PackagePart + ".database_locked";
/// <summary>This intent will be broadcast once the keyboard data has been cleared</summary>
public const String KeyboardCleared = "keepass2android." + AppNames.PackagePart + "keyboard_cleared";
public const String KeyboardCleared = "keepass2android." + AppNames.PackagePart + ".keyboard_cleared";
public const String CopyUsername = "keepass2android.copy_username";
public const String CopyPassword = "keepass2android.copy_password";