Skip to content

Commit

Permalink
FWB :SmartBar Button Tint [1/3]
Browse files Browse the repository at this point in the history
With Reference to Patch AICP/frameworks_base@85d97f4

thanks to lichti1901 for this initial Patch

Patchset 2 : Fix Back Button Tinting
Thanks to  LorDClockaN

Based on this patch

AICP/frameworks_base@d09e1cc

Patchset 3 : Fix New Actions FCs

DND edits:-
using tuner api

Change-Id: I0f20d5fbdde407c5748369556d9645d9ba1bf78c
Signed-off-by: AKabhishek <[email protected]>
  • Loading branch information
varund7726 authored and DarkKnight6499 committed Jun 25, 2017
1 parent 8df6304 commit 4b7c218
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
12 changes: 12 additions & 0 deletions core/java/android/provider/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -3957,6 +3957,18 @@ public boolean validate(String value) {
public static final String NAV_BAR_DYNAMIC = "nav_bar_dynamic";

/**
* Navbar Button Color Switch
* @hide
*/
public static final String NAVBAR_TINT_SWITCH = "navbar_tint_switch";

/**
* Navbar Button Color
* @hide
*/
public static final String NAVBAR_BUTTON_COLOR= "navbar_button_color";

/*
* Settings to backup. This is here so that it's in the same place as the settings
* keys and easy to update.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,10 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
"system:" + Settings.System.STATUS_BAR_SHOW_CARRIER;
private static final String NAV_BAR_DYNAMIC =
"system:" + Settings.System.NAV_BAR_DYNAMIC;
private static final String NAVBAR_TINT_SWITCH =
"system:" + Settings.System.NAVBAR_TINT_SWITCH;
private static final String NAVBAR_BUTTON_COLOR =
"system:" + Settings.System.NAVBAR_BUTTON_COLOR;

static {
boolean onlyCoreApps;
Expand Down Expand Up @@ -814,7 +818,9 @@ public void start() {
QS_ROWS_LANDSCAPE,
QS_COLUMNS,
STATUS_BAR_SHOW_CARRIER,
NAV_BAR_DYNAMIC);
NAV_BAR_DYNAMIC,
NAVBAR_TINT_SWITCH,
NAVBAR_BUTTON_COLOR);

// Lastly, call to the icon policy to install/update all the icons.
mIconPolicy = new PhoneStatusBarPolicy(mContext, mIconController, mCastController,
Expand Down Expand Up @@ -5549,6 +5555,16 @@ public void onTuningChanged(String key, String newValue) {
mNavigationController.updateNavbarOverlay(mContext.getResources());
}
break;
case NAVBAR_TINT_SWITCH:
if (mNavigationController != null) {
mNavigationController.updateNavbarOverlay(mContext.getResources());
}
break;
case NAVBAR_BUTTON_COLOR:
if (mNavigationController != null) {
mNavigationController.updateNavbarOverlay(mContext.getResources());
}
break;
default:
break;
}
Expand Down

0 comments on commit 4b7c218

Please sign in to comment.