Add controllers for default app shortcut preferences.

For AppInfoDashboardFragment:
- add the default app shortcut preferences into the preference screen
instead of creating them dynamically.
- add controller for each of the shortcut preference.

Bug: 69384089
Test: make RunSettingsRoboTests
Change-Id: I1e81944a3bc867fd6a3a0d484bab77c3ad0e6441
This commit is contained in:
Doris Ling
2017-11-30 15:45:25 -08:00
parent 84e1cce071
commit 86daa8f4c6
16 changed files with 979 additions and 69 deletions

View File

@@ -21,7 +21,12 @@ import android.support.v7.preference.Preference;
import com.android.internal.logging.nano.MetricsProto;
import com.android.settings.SettingsActivity;
import com.android.settings.Utils;
import com.android.settings.applications.appinfo.DefaultAppShortcutPreferenceControllerBase;
/**
* deprecated in favor of {@link DefaultAppShortcutPreferenceControllerBase}
*/
@Deprecated
public class ShortcutPreference extends Preference {
private final Class mTarget;