Search in sources :

Example 1 with MementoTheme

use of com.alexstyl.specialdates.theming.MementoTheme in project Memento-Calendar by alexstyl.

the class PersonModule method callProvider.

@Provides
PersonCallProvider callProvider(ContentResolver contentResolver, Resources resources, Context context, PackageManager packageManager, CrashAndErrorTracker tracker, Strings strings) {
    MementoTheme theme = ThemingPreferences.newInstance(context).getSelectedTheme();
    ContextThemeWrapper wrapper = new ContextThemeWrapper(context, theme.androidTheme());
    return new PersonCallProvider(new AndroidContactActionsProvider(contentResolver, resources, wrapper, packageManager, tracker), new FacebookContactActionsProvider(strings, resources));
}
Also used : ContextThemeWrapper(android.support.v7.view.ContextThemeWrapper) MementoTheme(com.alexstyl.specialdates.theming.MementoTheme) Provides(dagger.Provides)

Aggregations

ContextThemeWrapper (android.support.v7.view.ContextThemeWrapper)1 MementoTheme (com.alexstyl.specialdates.theming.MementoTheme)1 Provides (dagger.Provides)1