Merge "Make Settings use system-api restricted icon."
This commit is contained in:
committed by
Android (Google) Code Review
commit
b009e89e4f
@@ -21,4 +21,8 @@
|
||||
<bool name="config_show_connectivity_monitor">true</bool>
|
||||
<bool name="config_display_recent_apps">true</bool>
|
||||
<bool name="config_wifi_support_connected_mac_randomization">true</bool>
|
||||
|
||||
<!-- Fake dimen value for restricted icon size - needed to get around Robolectric
|
||||
issue loading framework hidden resources -->
|
||||
<dimen name="restricted_icon_size">24dp</dimen>
|
||||
</resources>
|
||||
@@ -16,4 +16,14 @@
|
||||
<item name="preferenceTheme">@style/PreferenceTheme</item>
|
||||
<item name="android:windowLightStatusBar">true</item>
|
||||
</style>
|
||||
|
||||
<style name="ThemeOverlay.SwitchBar.Settings" parent="@android:style/ThemeOverlay.Material.ActionBar">
|
||||
<item name="android:textColorPrimary">@android:color/white</item>
|
||||
<item name="switchBarMarginStart">@dimen/switchbar_subsettings_margin_start</item>
|
||||
<item name="switchBarMarginEnd">@dimen/switchbar_subsettings_margin_end</item>
|
||||
<item name="switchBarBackgroundColor">@color/switch_bar_background</item>
|
||||
<item name="switchBarBackgroundActivatedColor">?android:attr/colorAccent</item>
|
||||
<item name="switchBarRestrictionIcon">@drawable/ic_help</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -77,6 +77,8 @@ public class SettingsRobolectricTestRunner extends RobolectricTestRunner {
|
||||
Fs.fromURL(new URL("file:frameworks/base/packages/SettingsLib/res")), null));
|
||||
paths.add(new ResourcePath(null,
|
||||
Fs.fromURL(new URL("file:frameworks/base/packages/SettingsLib/HelpUtils/res/")), null));
|
||||
paths.add(new ResourcePath(null,
|
||||
Fs.fromURL(new URL("file:frameworks/base/packages/SettingsLib/RestrictedLockUtils/res/")), null));
|
||||
paths.add(new ResourcePath(null,
|
||||
Fs.fromURL(new URL("file:frameworks/base/core/res/res")), null));
|
||||
paths.add(new ResourcePath(null,
|
||||
|
||||
Reference in New Issue
Block a user