Search in sources :

Example 1 with SpeedDialEntryDatabaseHelper

use of com.android.dialer.speeddial.database.SpeedDialEntryDatabaseHelper in project android_packages_apps_Dialer by LineageOS.

the class DisambigDialog method updateDatabaseEntry.

@WorkerThread
private static void updateDatabaseEntry(Context appContext, SpeedDialUiItem item, Channel channel) {
    Assert.isWorkerThread();
    SpeedDialEntry entry = SpeedDialEntry.builder().setId(item.speedDialEntryId()).setContactId(item.contactId()).setLookupKey(item.lookupKey()).setDefaultChannel(channel).build();
    new SpeedDialEntryDatabaseHelper(appContext).update(ImmutableList.of(entry));
}
Also used : SpeedDialEntryDatabaseHelper(com.android.dialer.speeddial.database.SpeedDialEntryDatabaseHelper) SpeedDialEntry(com.android.dialer.speeddial.database.SpeedDialEntry) WorkerThread(android.support.annotation.WorkerThread)

Aggregations

WorkerThread (android.support.annotation.WorkerThread)1 SpeedDialEntry (com.android.dialer.speeddial.database.SpeedDialEntry)1 SpeedDialEntryDatabaseHelper (com.android.dialer.speeddial.database.SpeedDialEntryDatabaseHelper)1