Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit d41b8049 authored by Sam Mortimer's avatar Sam Mortimer Committed by Steve Kondik
Browse files

[2/2] Settings: Battery and Notification Lights



 * This is now just a pointer to CMParts.

PS2: *) Move menu options to sounds and notification
     *) Remove samm debug cruft

PS5: *) Update UI

Put together from:

Author: DvTonder <david.vantonder@gmail.com>
Date:   Fri Apr 6 07:39:11 2012 -0400

    Settings: Notification light(LED) settings

    This commit adds the ability to configure the Notification light
    color and pulse rate both for the default and a custom applications
    list.

    This work was done in collaboration with Marko Mihovilić (m1h4) who
    wrote the initial implementation as a stand-alone application and
    helped with the fixes below.

    NOTE: Google Talk notifications originate from the "Google Services
    Framework" so in order to override their settings you need to add
    this package instead of the Google Talk package.

    Change-Id: I6837210367123bc02ea27a9b7b6b3cf80c738bf1

Author: Danny Baumann <dannybaumann@web.de>
Date:   Thu Nov 7 09:04:29 2013 +0100
Add back notification light settings.
Change-Id: I474a14a1b395407f5ca273a5d6a3a7f03f7e4698

Author: Sam Mortimer <sam@mortimer.me.uk>
Date:   Sat Jan 4 15:52:47 2014 -0800
Settings: fix led pulsespeedoff disable behaviour
Keep led pulsespeedoff disabled if pulsespeedon is
disabled.  This ensures that pulsespeedoff stays
disabled if onOffChangeable was set to false.  Fixes
problem where charged led pulsespeed off looks to
be configurable in the ui and thereby creating user
confusion.
Change-Id: I6ac7f630544bf719b39e1ddcab435322975430c8

Author: Sam Mortimer <sam@mortimer.me.uk>
Date:   Tue Dec 31 12:11:05 2013 -0800
[1/2] Settings: instant led test
Show LED color in realtime when configuring
notification colors.
Requires framework patch for notification
extra EXTRA_FORCE_SHOW_LIGHTS.
Change-Id: Ic7858d79cb2351c407afd547b33652a9e04ef1b9

Author: Sam Mortimer <sam@mortimer.me.uk>
Date:   Sat Feb 1 18:36:15 2014 -0800
Settings LightSettingsDialog: update led on text change
Change-Id: I135f37829b9b4fb2166afac9d9531b76a62f3ef7

Author: Danny Baumann <dannybaumann@web.de>
Date:   Wed Jun 25 08:56:17 2014 +0200
Deduplicate adapter-of-installed-packages code.
Change-Id: I454ba79eddaaff86233a2cc341f4c8bebe94729e

Author: Michael Bestas <mikeioannina@gmail.com>
Date:   Fri Oct 17 00:48:17 2014 +0300
Fix copyright headers
Change-Id: I7934d01f89953e577c3cb074dce608d9bedd4027

Author: Michael Bestas <mikeioannina@gmail.com>
Date:   Wed Oct 22 02:23:15 2014 +0300
Add support for single color notification LED (2/2)
Change-Id: I4cf21dda3d9e311146149c2ec81fe2398f5f9f87

Change-Id: Ie1203c64484c7d9bed0a6bc0b2808e69ef4bfa35

Settings: Fix FC on Notification Light settings

AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: java.lang.ClassCastException: com.android.settings.cyanogenmod.CMSystemSettingSwitchPreference cannot be cast to com.android.settings.cyanogenmod.SystemSettingSwitchPreference

Change-Id: I3afa8bb4cfe9dcd76054b9c9bd9ba87a069f74e0

Settings: set a notification when forcing LED on

Fixes
AndroidRuntime: java.lang.IllegalArgumentException:
Invalid notification (no valid small icon):

Change-Id: I1375ed394762eaf820d21ad79a22c01c0ae88e31

Lights with Screen On [2/2]: Optional allowment of lights

Implement a setting allowing lights to be activated
for new notifications even if the screen is on.

Lights with screen on and Custom values are separated
in an advanced section for a cleaner overview.

This setting gives the user an oportunity to activate lights
with the screen on and also during DayDream screensaver.
The option is not activated by default.

Changes include :
  frameworks/base
  packages/apps/Settings

Change-Id: I3650a014554ce50eb9030cc41e5ce1780bcc2dfe
Signed-off-by: default avatarAdrianDC <radian.dc@gmail.com>

LEDs Brightness [1/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: I6ff14ee0de8200f211302a868c5b43e3ec6f9f3a
Signed-off-by: default avatarAdrianDC <radian.dc@gmail.com>

Multiple LEDs [2/3]: Illumination Bars support

Implement the support of a multiple LEDs settings.

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
  hardware/libhardware
  packages/apps/Settings

Change-Id: I5531093cd0543d7730a8c3f83c0aebb3678436d5
Signed-off-by: default avatarAdrianDC <radian.dc@gmail.com>

Settings: Always enable the per-app pulse light settings

All the per-app light settings, including the pulse light settings,
were made dependent on config_multiColorNotificationLed.

The code to enable the notification color settings depending on the
value of config_multiColorNotificationLed is already in place, so
enable the advanced light settings unconditionally.

Change-Id: Ie396f5e6e190c6d3f08c83dd0b38b038f0653b85

Settings: display light pulse dialog settings conditionally

If the device doesn't support LED pulsing, don't show the settings.

REF: CYNGNOS-403
Change-Id: I2316a4fd7a3a27c9bc046eda3bd374acc1edcf37
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>

Light settings: reduce tone if preview image color is very light

Prevents material whiteout in color preview.

Change-Id: Idfa47e57bdb669b17b610b737d0fe2c942b47d78

Settings: fix a few color picker inconsistentcies

Don't assume we can pulse when calling setAllValues().

Don't display both on/off pulse values when it cannot pulse.

Default to Always on when we can't pulse.

Ref: CYNGNOS-403
Change-Id: Ie356cdc35cb545dd51896697f89ef265ada1147f
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>

Settings: Move battery light settings to CMSettings.

Change-Id: I2299aea6067507a9ab7d11a1a64ca99479efc5af

BatteryLight: Reset all settings back to default

This patch resets all the settings for BatteryLightSettings when
the user presses reset, for a more consistent UX.

Change-Id: I5b705a02b9df686eea8af5afd4d552897926d0e3

Remove 'Pulse if battery low' if unsupported

Change-Id: Ie58f5c0c148b7f8acbf61d8e808b0cb78e9fb581

Disable battery pulsing if segmented battery LED is enabled

Change-Id: Ic5b4e7ce7830c43e84f9a14919ea85bbe993ac99
parent dd1e5d17
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment