diff options
author | AdrianDC <radian.dc@gmail.com> | 2015-08-18 19:33:18 +0200 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2015-10-28 13:30:30 -0700 |
commit | 89d8d436e156a3894d6bdee88607c6d69cbc243a (patch) | |
tree | d54004e0a28777024eaa4765e64e617337684c2c /packages/SystemUI/res | |
parent | 3d8260d65d28a22f2762713fdabf98ca7a81e350 (diff) | |
download | frameworks_base-89d8d436e156a3894d6bdee88607c6d69cbc243a.zip frameworks_base-89d8d436e156a3894d6bdee88607c6d69cbc243a.tar.gz frameworks_base-89d8d436e156a3894d6bdee88607c6d69cbc243a.tar.bz2 |
LEDs Brightness [2/2]: Lights notifications brightness support
Implement the support of an overall brightness control for the LEDs.
The setting is deactivated by default
and will be ignored by the unimplemented phones.
Current LibLights will simply not use the new variable.
Changes includes :
frameworks/base
packages/Apps/Settings
Change-Id: I1c0de01b1c6a2a2cf1432028a2e69f90b2373b2c
Signed-off-by: AdrianDC <radian.dc@gmail.com>
Diffstat (limited to 'packages/SystemUI/res')
-rw-r--r-- | packages/SystemUI/res/layout/quick_settings_notification_brightness_dialog.xml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/packages/SystemUI/res/layout/quick_settings_notification_brightness_dialog.xml b/packages/SystemUI/res/layout/quick_settings_notification_brightness_dialog.xml new file mode 100644 index 0000000..561eff6 --- /dev/null +++ b/packages/SystemUI/res/layout/quick_settings_notification_brightness_dialog.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012-2015 The CyanogenMod 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. +--> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui" + android:paddingStart="16dp" + android:paddingEnd="16dp" + + style="@style/BrightnessDialogContainer"> + + <com.android.systemui.settings.ToggleSlider + android:id="@+id/notification_brightness_slider" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:layout_weight="1" + systemui:text="" /> + +</LinearLayout> |