Search in sources :

Example 1 with ShortcutPickHelper

use of com.android.settings.rr.ShortcutPickHelper in project Resurrection_packages_apps_Settings by ResurrectionRemix.

the class GestureAnywhereBuilderActivity method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.ga_gestures_list);
    mAdapter = new GesturesAdapter(this);
    setListAdapter(mAdapter);
    if (sStore == null) {
        sStore = GestureLibraries.fromFile(mStoreFile);
        //Add this to save your rename Gesture. This will solve your Rename Gesture Problem.
        sStore.save();
    }
    mEmpty = (TextView) findViewById(android.R.id.empty);
    loadGestures();
    mPicker = new ShortcutPickHelper(this, this);
    registerForContextMenu(getListView());
}
Also used : ShortcutPickHelper(com.android.settings.rr.ShortcutPickHelper)

Example 2 with ShortcutPickHelper

use of com.android.settings.rr.ShortcutPickHelper in project Resurrection_packages_apps_Settings by ResurrectionRemix.

the class ActionFragment method onCreate.

@Override
public void onCreate(Bundle icicle) {
    super.onCreate(icicle);
    if (icicle != null) {
        String holderTag = icicle.getString(KEY_FOCUSED_PREFERENCE);
        if (holderTag != null) {
            mHolderTag = holderTag;
        }
    }
    mPicker = new ShortcutPickHelper(getActivity(), this);
    mPrefHolder = new ArrayList<ActionPreference>();
}
Also used : ShortcutPickHelper(com.android.settings.rr.ShortcutPickHelper) ActionPreference(com.android.settings.rr.Preferences.ActionPreference)

Aggregations

ShortcutPickHelper (com.android.settings.rr.ShortcutPickHelper)2 ActionPreference (com.android.settings.rr.Preferences.ActionPreference)1