Search in sources :

Example 6 with FingerprintStatus

use of de.pixart.messenger.crypto.axolotl.FingerprintStatus in project Pix-Art-Messenger by kriztan.

the class DatabaseBackend method getFingerprintStatus.

public FingerprintStatus getFingerprintStatus(Account account, String fingerprint) {
    Cursor cursor = getIdentityKeyCursor(account, fingerprint);
    final FingerprintStatus status;
    if (cursor.getCount() > 0) {
        cursor.moveToFirst();
        status = FingerprintStatus.fromCursor(cursor);
    } else {
        status = null;
    }
    cursor.close();
    return status;
}
Also used : FingerprintStatus(de.pixart.messenger.crypto.axolotl.FingerprintStatus) Cursor(android.database.Cursor)

Aggregations

FingerprintStatus (de.pixart.messenger.crypto.axolotl.FingerprintStatus)6 AxolotlService (de.pixart.messenger.crypto.axolotl.AxolotlService)3 View (android.view.View)2 OnClickListener (android.view.View.OnClickListener)2 TextView (android.widget.TextView)2 XmppUri (de.pixart.messenger.utils.XmppUri)2 Cursor (android.database.Cursor)1 ActionBar (android.support.v7.app.ActionBar)1 AlertDialog (android.support.v7.app.AlertDialog)1 SpannableString (android.text.SpannableString)1 LayoutInflater (android.view.LayoutInflater)1 MenuItem (android.view.MenuItem)1 ImageButton (android.widget.ImageButton)1 ImageView (android.widget.ImageView)1 XmppAxolotlSession (de.pixart.messenger.crypto.axolotl.XmppAxolotlSession)1 Account (de.pixart.messenger.entities.Account)1 DownloadableFile (de.pixart.messenger.entities.DownloadableFile)1 ListItem (de.pixart.messenger.entities.ListItem)1 Message (de.pixart.messenger.entities.Message)1 FileParams (de.pixart.messenger.entities.Message.FileParams)1