Search in sources :

Example 51 with SuggestionFeatureProvider

use of com.android.settings.dashboard.suggestions.SuggestionFeatureProvider in project Resurrection_packages_apps_Settings by ResurrectionRemix.

the class DoubleTapScreenSettings method onAttach.

@Override
public void onAttach(Context context) {
    super.onAttach(context);
    SuggestionFeatureProvider suggestionFeatureProvider = FeatureFactory.getFactory(context).getSuggestionFeatureProvider(context);
    SharedPreferences prefs = suggestionFeatureProvider.getSharedPrefs(context);
    prefs.edit().putBoolean(PREF_KEY_SUGGESTION_COMPLETE, true).apply();
    use(DoubleTapScreenPreferenceController.class).setConfig(new AmbientDisplayConfiguration(context));
}
Also used : SharedPreferences(android.content.SharedPreferences) SuggestionFeatureProvider(com.android.settings.dashboard.suggestions.SuggestionFeatureProvider) AmbientDisplayConfiguration(android.hardware.display.AmbientDisplayConfiguration)

Example 52 with SuggestionFeatureProvider

use of com.android.settings.dashboard.suggestions.SuggestionFeatureProvider in project Resurrection_packages_apps_Settings by ResurrectionRemix.

the class DoubleTwistGestureSettings method onAttach.

@Override
public void onAttach(Context context) {
    super.onAttach(context);
    SuggestionFeatureProvider suggestionFeatureProvider = FeatureFactory.getFactory(context).getSuggestionFeatureProvider(context);
    SharedPreferences prefs = suggestionFeatureProvider.getSharedPrefs(context);
    prefs.edit().putBoolean(PREF_KEY_SUGGESTION_COMPLETE, true).apply();
}
Also used : SharedPreferences(android.content.SharedPreferences) SuggestionFeatureProvider(com.android.settings.dashboard.suggestions.SuggestionFeatureProvider)

Example 53 with SuggestionFeatureProvider

use of com.android.settings.dashboard.suggestions.SuggestionFeatureProvider in project android_packages_apps_Settings by omnirom.

the class SwipeToNotificationSettings method onAttach.

@Override
public void onAttach(Context context) {
    super.onAttach(context);
    SuggestionFeatureProvider suggestionFeatureProvider = FeatureFactory.getFactory(context).getSuggestionFeatureProvider(context);
    SharedPreferences prefs = suggestionFeatureProvider.getSharedPrefs(context);
    prefs.edit().putBoolean(PREF_KEY_SUGGESTION_COMPLETE, true).apply();
}
Also used : SharedPreferences(android.content.SharedPreferences) SuggestionFeatureProvider(com.android.settings.dashboard.suggestions.SuggestionFeatureProvider)

Example 54 with SuggestionFeatureProvider

use of com.android.settings.dashboard.suggestions.SuggestionFeatureProvider in project android_packages_apps_Settings by omnirom.

the class TapScreenGestureSettings method onAttach.

@Override
public void onAttach(Context context) {
    super.onAttach(context);
    SuggestionFeatureProvider suggestionFeatureProvider = FeatureFactory.getFactory(context).getSuggestionFeatureProvider(context);
    SharedPreferences prefs = suggestionFeatureProvider.getSharedPrefs(context);
    prefs.edit().putBoolean(PREF_KEY_SUGGESTION_COMPLETE, true).apply();
    use(TapScreenGesturePreferenceController.class).setConfig(new AmbientDisplayConfiguration(context));
}
Also used : SharedPreferences(android.content.SharedPreferences) SuggestionFeatureProvider(com.android.settings.dashboard.suggestions.SuggestionFeatureProvider) AmbientDisplayConfiguration(android.hardware.display.AmbientDisplayConfiguration)

Example 55 with SuggestionFeatureProvider

use of com.android.settings.dashboard.suggestions.SuggestionFeatureProvider in project android_packages_apps_Settings by omnirom.

the class PickupGestureSettings method onAttach.

@Override
public void onAttach(Context context) {
    super.onAttach(context);
    SuggestionFeatureProvider suggestionFeatureProvider = FeatureFactory.getFactory(context).getSuggestionFeatureProvider(context);
    SharedPreferences prefs = suggestionFeatureProvider.getSharedPrefs(context);
    prefs.edit().putBoolean(PREF_KEY_SUGGESTION_COMPLETE, true).apply();
    use(PickupGesturePreferenceController.class).setConfig(new AmbientDisplayConfiguration(context));
}
Also used : SharedPreferences(android.content.SharedPreferences) SuggestionFeatureProvider(com.android.settings.dashboard.suggestions.SuggestionFeatureProvider) AmbientDisplayConfiguration(android.hardware.display.AmbientDisplayConfiguration)

Aggregations

SharedPreferences (android.content.SharedPreferences)59 SuggestionFeatureProvider (com.android.settings.dashboard.suggestions.SuggestionFeatureProvider)59 Intent (android.content.Intent)6 AmbientDisplayConfiguration (android.hardware.display.AmbientDisplayConfiguration)6 VideoPreference (com.android.settings.widget.VideoPreference)1 IllustrationPreference (com.android.settingslib.widget.IllustrationPreference)1