Skip to content
This repository was archived by the owner on Jul 22, 2021. It is now read-only.

Commit 3be5d7e

Browse files
Simplify theme accent
Signed-off-by: sunilpaulmathew <sunil.kde@gmail.com>
1 parent a4e6cd5 commit 3be5d7e

File tree

1 file changed

+1
-4
lines changed
  • app/src/main/java/com/smartpack/scriptmanager/utils

1 file changed

+1
-4
lines changed

app/src/main/java/com/smartpack/scriptmanager/utils/Utils.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import android.os.Environment;
2323
import android.preference.PreferenceManager;
2424
import android.util.DisplayMetrics;
25-
import android.util.TypedValue;
2625
import android.view.Gravity;
2726
import android.view.Menu;
2827
import android.view.View;
@@ -140,9 +139,7 @@ private static String removeSuffix(@Nullable String s) {
140139
*/
141140

142141
public static int getThemeAccentColor(Context context) {
143-
TypedValue value = new TypedValue();
144-
context.getTheme().resolveAttribute(R.attr.colorAccent, value, true);
145-
return value.data;
142+
return context.getResources().getColor(R.color.blue);
146143
}
147144

148145
public interface OnDialogEditTextListener {

0 commit comments

Comments
 (0)