diff options
author | PauloftheWest <paulofthewest@google.com> | 2014-06-30 10:02:36 -0700 |
---|---|---|
committer | PauloftheWest <paulofthewest@google.com> | 2014-07-24 06:41:12 -0700 |
commit | 3815561997eced7fd773062ce32eaa50bece072c (patch) | |
tree | 7c951c7caf8831c218e3554e00c67631f20feadc /src/com/android/settings/search | |
parent | 2513851ace8d353f99146316b81a430add6d837f (diff) | |
download | packages_apps_Settings-3815561997eced7fd773062ce32eaa50bece072c.tar.gz packages_apps_Settings-3815561997eced7fd773062ce32eaa50bece072c.tar.bz2 packages_apps_Settings-3815561997eced7fd773062ce32eaa50bece072c.zip |
Added SIM Card Activity to Settings
+ Added SIM Card menu to Settings menu
+ Added SIM card detail dialog when selecting a SIM Card
+ Added ability to select the default SIM for Cellular data, Calls, and SMS
Bug: 16241745
Change-Id: I43437aa4c591c5097a8865d564f88726671e1b7d
Diffstat (limited to 'src/com/android/settings/search')
-rw-r--r-- | src/com/android/settings/search/Ranking.java | 41 | ||||
-rw-r--r-- | src/com/android/settings/search/SearchIndexableResources.java | 8 |
2 files changed, 31 insertions, 18 deletions
diff --git a/src/com/android/settings/search/Ranking.java b/src/com/android/settings/search/Ranking.java index 96e057e0d..44717c154 100644 --- a/src/com/android/settings/search/Ranking.java +++ b/src/com/android/settings/search/Ranking.java @@ -41,6 +41,7 @@ import com.android.settings.notification.NotificationSettings; import com.android.settings.notification.OtherSoundSettings; import com.android.settings.notification.ZenModeSettings; import com.android.settings.print.PrintSettingsFragment; +import com.android.settings.sim.SimSettings; import com.android.settings.users.UserSettings; import com.android.settings.wifi.AdvancedWifiSettings; import com.android.settings.wifi.SavedAccessPointsWifiSettings; @@ -55,24 +56,25 @@ public final class Ranking { public static final int RANK_WIFI = 1; public static final int RANK_BT = 2; - public static final int RANK_DATA_USAGE = 3; - public static final int RANK_WIRELESS = 4; - public static final int RANK_HOME = 5; - public static final int RANK_DISPLAY = 6; - public static final int RANK_WALLPAPER = 7; - public static final int RANK_NOTIFICATIONS = 8; - public static final int RANK_MEMORY = 9; - public static final int RANK_POWER_USAGE = 10; - public static final int RANK_USERS = 11; - public static final int RANK_LOCATION = 12; - public static final int RANK_SECURITY = 13; - public static final int RANK_IME = 14; - public static final int RANK_PRIVACY = 15; - public static final int RANK_DATE_TIME = 16; - public static final int RANK_ACCESSIBILITY = 17; - public static final int RANK_PRINTING = 18; - public static final int RANK_DEVELOPEMENT = 19; - public static final int RANK_DEVICE_INFO = 20; + public static final int RANK_SIM = 3; + public static final int RANK_DATA_USAGE = 4; + public static final int RANK_WIRELESS = 5; + public static final int RANK_HOME = 6; + public static final int RANK_DISPLAY = 7; + public static final int RANK_WALLPAPER = 8; + public static final int RANK_NOTIFICATIONS = 9; + public static final int RANK_MEMORY = 10; + public static final int RANK_POWER_USAGE = 11; + public static final int RANK_USERS = 12; + public static final int RANK_LOCATION = 13; + public static final int RANK_SECURITY = 14; + public static final int RANK_IME = 15; + public static final int RANK_PRIVACY = 16; + public static final int RANK_DATE_TIME = 17; + public static final int RANK_ACCESSIBILITY = 18; + public static final int RANK_PRINTING = 19; + public static final int RANK_DEVELOPEMENT = 20; + public static final int RANK_DEVICE_INFO = 21; public static final int RANK_UNDEFINED = -1; public static final int RANK_OTHERS = 1024; @@ -93,6 +95,9 @@ public final class Ranking { sRankMap.put(BluetoothSettings.class.getName(), RANK_BT); sRankMap.put(MessageAccessSettings.class.getName(), RANK_BT); + // SIM Cards + sRankMap.put(SimSettings.class.getName(), RANK_SIM); + // DataUsage sRankMap.put(DataUsageSummary.class.getName(), RANK_DATA_USAGE); sRankMap.put(DataUsageMeteredSettings.class.getName(), RANK_DATA_USAGE); diff --git a/src/com/android/settings/search/SearchIndexableResources.java b/src/com/android/settings/search/SearchIndexableResources.java index 4749733ed..a3d2b8d71 100644 --- a/src/com/android/settings/search/SearchIndexableResources.java +++ b/src/com/android/settings/search/SearchIndexableResources.java @@ -44,6 +44,7 @@ import com.android.settings.notification.NotificationSettings; import com.android.settings.notification.OtherSoundSettings; import com.android.settings.notification.ZenModeSettings; import com.android.settings.print.PrintSettingsFragment; +import com.android.settings.sim.SimSettings; import com.android.settings.users.UserSettings; import com.android.settings.wifi.AdvancedWifiSettings; import com.android.settings.wifi.SavedAccessPointsWifiSettings; @@ -88,6 +89,13 @@ public final class SearchIndexableResources { BluetoothSettings.class.getName(), R.drawable.ic_settings_bluetooth2)); + sResMap.put(SimSettings.class.getName(), + new SearchIndexableResource( + Ranking.getRankForClassName(SimSettings.class.getName()), + R.xml.sim_settings, + SimSettings.class.getName(), + R.drawable.ic_sim_sd)); + sResMap.put(MessageAccessSettings.class.getName(), new SearchIndexableResource( Ranking.getRankForClassName(MessageAccessSettings.class.getName()), |