Conditionally remove Dock settings shortcut and Power control widget.
Bug: 3258028 Bug: 3248740 Change-Id: Id37787cc9562cde13048e8dfba957599219d94b5
This commit is contained in:
@@ -452,7 +452,8 @@
|
||||
<activity android:name="Settings$DockSettingsActivity"
|
||||
android:theme="@android:style/Theme.Holo"
|
||||
android:label="@string/dock_settings_title"
|
||||
android:clearTaskOnLaunch="true">
|
||||
android:clearTaskOnLaunch="true"
|
||||
android:enabled="@bool/has_dock_settings">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<action android:name="com.android.settings.DOCK_SETTINGS" />
|
||||
@@ -988,7 +989,8 @@
|
||||
<activity android:name="AppWidgetPickActivity"
|
||||
android:label="@string/widget_picker_title"
|
||||
android:theme="@*android:style/Theme.Dialog.Alert"
|
||||
android:finishOnCloseSystemDialogs="true">
|
||||
android:finishOnCloseSystemDialogs="true"
|
||||
android:enabled="@bool/has_powercontrol_widget">
|
||||
<intent-filter>
|
||||
<action android:name="android.appwidget.action.APPWIDGET_PICK" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
@@ -1065,7 +1067,8 @@
|
||||
android:theme="@android:style/Theme.Holo.DialogWhenLarge"/>
|
||||
|
||||
<receiver android:name=".widget.SettingsAppWidgetProvider"
|
||||
android:label="@string/gadget_title" android:exported="false">
|
||||
android:label="@string/gadget_title" android:exported="false"
|
||||
android:enabled="@bool/has_powercontrol_widget">
|
||||
<intent-filter>
|
||||
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
|
||||
<action android:name="android.net.wifi.WIFI_STATE_CHANGED" />
|
||||
|
20
res/values-xlarge/bools.xml
Normal file
20
res/values-xlarge/bools.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2010 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
<!-- Whether or not the Power Control widget is enabled -->
|
||||
<bool name="has_powercontrol_widget">false</bool>
|
||||
</resources>
|
@@ -20,4 +20,6 @@
|
||||
<bool name="has_intrusive_led">false</bool>
|
||||
<!-- Whether or not the dock settings are to be displayed for this device when docked -->
|
||||
<bool name="has_dock_settings">false</bool>
|
||||
<!-- Whether or not the Power Control widget is enabled -->
|
||||
<bool name="has_powercontrol_widget">true</bool>
|
||||
</resources>
|
||||
|
Reference in New Issue
Block a user