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

Commit

Permalink
Simplify theme accent
Browse files Browse the repository at this point in the history
Signed-off-by: sunilpaulmathew <sunil.kde@gmail.com>
  • Loading branch information
sunilpaulmathew committed Jun 6, 2021
1 parent a4e6cd5 commit 3be5d7e
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import android.os.Environment;
import android.preference.PreferenceManager;
import android.util.DisplayMetrics;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.Menu;
import android.view.View;
Expand Down Expand Up @@ -140,9 +139,7 @@ private static String removeSuffix(@Nullable String s) {
*/

public static int getThemeAccentColor(Context context) {
TypedValue value = new TypedValue();
context.getTheme().resolveAttribute(R.attr.colorAccent, value, true);
return value.data;
return context.getResources().getColor(R.color.blue);
}

public interface OnDialogEditTextListener {
Expand Down

0 comments on commit 3be5d7e

Please sign in to comment.