Search in sources :

Example 1 with BlockedNumbersAutoMigrator

use of com.android.dialer.blocking.BlockedNumbersAutoMigrator in project android_packages_apps_Dialer by LineageOS.

the class DialerApplication method onCreate.

@Override
public void onCreate() {
    Trace.beginSection("DialerApplication.onCreate");
    if (BuildType.get() == BuildType.BUGFOOD) {
        enableStrictMode();
    }
    super.onCreate();
    new BlockedNumbersAutoMigrator(this.getApplicationContext(), new FilteredNumberAsyncQueryHandler(this), new DefaultDialerExecutorFactory()).asyncAutoMigrate();
    CallLogComponent.get(this).callLogFramework().registerContentObservers(getApplicationContext());
    PersistentLogger.initialize(this);
    if (BuildCompat.isAtLeastO()) {
        NotificationChannelManager.initChannels(this);
    }
    Trace.endSection();
}
Also used : DefaultDialerExecutorFactory(com.android.dialer.common.concurrent.DefaultDialerExecutorFactory) BlockedNumbersAutoMigrator(com.android.dialer.blocking.BlockedNumbersAutoMigrator) FilteredNumberAsyncQueryHandler(com.android.dialer.blocking.FilteredNumberAsyncQueryHandler)

Aggregations

BlockedNumbersAutoMigrator (com.android.dialer.blocking.BlockedNumbersAutoMigrator)1 FilteredNumberAsyncQueryHandler (com.android.dialer.blocking.FilteredNumberAsyncQueryHandler)1 DefaultDialerExecutorFactory (com.android.dialer.common.concurrent.DefaultDialerExecutorFactory)1