Loading res/values/styles.xml +1 −1 Original line number Diff line number Diff line Loading @@ -58,7 +58,7 @@ </style> <style name="OverflowButtonStyle" parent="@style/Widget.AppCompat.ActionButton.Overflow"> <item name="android:tint">?android:colorControlNormal</item> <item name="android:tint">@color/color_default_blue1</item> <item name="android:minWidth">@dimen/button_touch_size</item> </style> Loading src/com/android/documentsui/BaseActivity.java +1 −8 Original line number Diff line number Diff line Loading @@ -902,14 +902,7 @@ public abstract class BaseActivity * */ private int fetchAccentColor() { TypedValue typedValue = new TypedValue(); ContextThemeWrapper contextThemeWrapper = new ContextThemeWrapper(this, android.R.style.Theme_DeviceDefault_Light); contextThemeWrapper.getTheme().resolveAttribute(android.R.attr.colorAccent, typedValue, true); int color = typedValue.data; int color=getResources().getColor(R.color.color_default_blue1); return color; } Loading src/com/android/documentsui/DrawerController.java +1 −6 Original line number Diff line number Diff line Loading @@ -264,13 +264,8 @@ public abstract class DrawerController implements DrawerListener { * */ private static int fetchAccentColor(Activity activity) { TypedValue typedValue = new TypedValue(); ContextThemeWrapper contextThemeWrapper = new ContextThemeWrapper(activity, android.R.style.Theme_DeviceDefault_Light); contextThemeWrapper.getTheme().resolveAttribute(android.R.attr.colorAccent, typedValue, true); int color = typedValue.data; Log.e("TAG", "accent Colour #"+Integer.toHexString(color)); int color=activity.getResources().getColor(R.color.accent); //toolbar change color to accent color return color; } Loading src/com/android/documentsui/files/LauncherActivity.java +1 −9 Original line number Diff line number Diff line Loading @@ -180,15 +180,7 @@ public class LauncherActivity extends Activity { * */ private int fetchAccentColor() { TypedValue typedValue = new TypedValue(); ContextThemeWrapper contextThemeWrapper = new ContextThemeWrapper(this, android.R.style.Theme_DeviceDefault_Light); contextThemeWrapper.getTheme().resolveAttribute(android.R.attr.colorAccent, typedValue, true); int color = typedValue.data; Log.e("TAG", "accent Colour #"+Integer.toHexString(color)); //toolbar change color to accent color int color=getResources().getColor(R.color.accent); return color; } Loading Loading
res/values/styles.xml +1 −1 Original line number Diff line number Diff line Loading @@ -58,7 +58,7 @@ </style> <style name="OverflowButtonStyle" parent="@style/Widget.AppCompat.ActionButton.Overflow"> <item name="android:tint">?android:colorControlNormal</item> <item name="android:tint">@color/color_default_blue1</item> <item name="android:minWidth">@dimen/button_touch_size</item> </style> Loading
src/com/android/documentsui/BaseActivity.java +1 −8 Original line number Diff line number Diff line Loading @@ -902,14 +902,7 @@ public abstract class BaseActivity * */ private int fetchAccentColor() { TypedValue typedValue = new TypedValue(); ContextThemeWrapper contextThemeWrapper = new ContextThemeWrapper(this, android.R.style.Theme_DeviceDefault_Light); contextThemeWrapper.getTheme().resolveAttribute(android.R.attr.colorAccent, typedValue, true); int color = typedValue.data; int color=getResources().getColor(R.color.color_default_blue1); return color; } Loading
src/com/android/documentsui/DrawerController.java +1 −6 Original line number Diff line number Diff line Loading @@ -264,13 +264,8 @@ public abstract class DrawerController implements DrawerListener { * */ private static int fetchAccentColor(Activity activity) { TypedValue typedValue = new TypedValue(); ContextThemeWrapper contextThemeWrapper = new ContextThemeWrapper(activity, android.R.style.Theme_DeviceDefault_Light); contextThemeWrapper.getTheme().resolveAttribute(android.R.attr.colorAccent, typedValue, true); int color = typedValue.data; Log.e("TAG", "accent Colour #"+Integer.toHexString(color)); int color=activity.getResources().getColor(R.color.accent); //toolbar change color to accent color return color; } Loading
src/com/android/documentsui/files/LauncherActivity.java +1 −9 Original line number Diff line number Diff line Loading @@ -180,15 +180,7 @@ public class LauncherActivity extends Activity { * */ private int fetchAccentColor() { TypedValue typedValue = new TypedValue(); ContextThemeWrapper contextThemeWrapper = new ContextThemeWrapper(this, android.R.style.Theme_DeviceDefault_Light); contextThemeWrapper.getTheme().resolveAttribute(android.R.attr.colorAccent, typedValue, true); int color = typedValue.data; Log.e("TAG", "accent Colour #"+Integer.toHexString(color)); //toolbar change color to accent color int color=getResources().getColor(R.color.accent); return color; } Loading