Fix legal info back button
Make it its own SettingsPreferenceFragment. whitespace-- Bug: 20727881 Change-Id: I1f790af03d316c1d43377a6d8606084d9f3a747f
This commit is contained in:
@@ -23,6 +23,7 @@ import com.android.settings.DevelopmentSettings;
|
||||
import com.android.settings.DeviceInfoSettings;
|
||||
import com.android.settings.DisplaySettings;
|
||||
import com.android.settings.HomeSettings;
|
||||
import com.android.settings.LegalSettings;
|
||||
import com.android.settings.PrivacySettings;
|
||||
import com.android.settings.ScreenPinningSettings;
|
||||
import com.android.settings.SecuritySettings;
|
||||
@@ -172,6 +173,7 @@ public final class Ranking {
|
||||
|
||||
// Device infos
|
||||
sRankMap.put(DeviceInfoSettings.class.getName(), RANK_DEVICE_INFO);
|
||||
sRankMap.put(LegalSettings.class.getName(), RANK_DEVICE_INFO);
|
||||
|
||||
sBaseRankMap.put("com.android.settings", 0);
|
||||
}
|
||||
|
||||
@@ -24,6 +24,7 @@ import com.android.settings.DevelopmentSettings;
|
||||
import com.android.settings.DeviceInfoSettings;
|
||||
import com.android.settings.DisplaySettings;
|
||||
import com.android.settings.HomeSettings;
|
||||
import com.android.settings.LegalSettings;
|
||||
import com.android.settings.PrivacySettings;
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.ScreenPinningSettings;
|
||||
@@ -296,6 +297,13 @@ public final class SearchIndexableResources {
|
||||
DeviceInfoSettings.class.getName(),
|
||||
R.drawable.ic_settings_about));
|
||||
|
||||
sResMap.put(LegalSettings.class.getName(),
|
||||
new SearchIndexableResource(
|
||||
Ranking.getRankForClassName(LegalSettings.class.getName()),
|
||||
NO_DATA_RES_ID,
|
||||
LegalSettings.class.getName(),
|
||||
R.drawable.ic_settings_about));
|
||||
|
||||
sResMap.put(WifiCallingSettings.class.getName(),
|
||||
new SearchIndexableResource(
|
||||
Ranking.getRankForClassName(WifiCallingSettings.class.getName()),
|
||||
|
||||
Reference in New Issue
Block a user