Convert CreateShortcut to DashboardFragment
Created a new xml and CreateShortcutPreferenceController to deal with querying package manager and display list on UI. Bug: 74806595 Test: robotests Change-Id: I0945245c3856d12b7751d26fca324d2dbf31b230
This commit is contained in:
@@ -34,7 +34,7 @@ import android.os.UserHandle;
|
||||
import android.os.UserManager;
|
||||
import android.util.Log;
|
||||
|
||||
import com.android.settings.shortcut.CreateShortcut;
|
||||
import com.android.settings.Settings.CreateShortcutActivity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -101,7 +101,8 @@ public class SettingsInitialize extends BroadcastReceiver {
|
||||
pm.setComponentEnabledSetting(settingsComponentName,
|
||||
PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP);
|
||||
// Disable shortcut picker.
|
||||
ComponentName shortcutComponentName = new ComponentName(context, CreateShortcut.class);
|
||||
ComponentName shortcutComponentName = new ComponentName(
|
||||
context, CreateShortcutActivity.class);
|
||||
pm.setComponentEnabledSetting(shortcutComponentName,
|
||||
PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP);
|
||||
}
|
||||
|
Reference in New Issue
Block a user