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

Commit 65485be8 authored by Pedlar's avatar Pedlar
Browse files

eshabtai: modded to disable the blend if it is a default color (white notifications kill the blend)

parent 8c262496
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1271,6 +1271,7 @@ class NotificationManagerService extends INotificationManager.Stub
			ledARGB = Color.parseColor(colorList[lastColor - 1]);
			lastColor = lastColor + 1;
		} else if(mBlendColor == 1) { // Blend lights: Credit to eshabtai for the application of this.
			ledARGB = 0;
			for (int n=0; n < mLights.size(); n++) {
				int x = 0;
				boolean found = false;
@@ -1294,10 +1295,13 @@ class NotificationManagerService extends INotificationManager.Stub
                        	}
                                if(found) {
                                        ledARGB |= pkgcolor;
                                } else {
                                } else if ((mLights.get(n).notification.defaults & Notification.DEFAULT_LIGHTS) != 0) {
                                        ledARGB |= mLights.get(n).notification.ledARGB;
                                }
			}
			if (ledARGB == 0) {
				ledARGB = mDefaultNotificationColor;
			}
		}
            	if (mNotificationPulseEnabled) {
               	// pulse repeatedly