Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit d2443bd

Browse files
committed
Make the sorting button more visible (Fix #137)
1 parent 243e07e commit d2443bd

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

app/src/main/java/com/fox2code/mmm/module/ModuleViewAdapter.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ public boolean update(ModuleHolder moduleHolder) {
190190
if (moduleHolder.isModuleHolder()) {
191191
this.canExpand = false;
192192
this.buttonAction.setVisibility(View.GONE);
193+
this.buttonAction.setBackground(null);
193194
LocalModuleInfo localModuleInfo = moduleHolder.moduleInfo;
194195
if (localModuleInfo != null) {
195196
this.switchMaterial.setVisibility(View.VISIBLE);
@@ -286,10 +287,12 @@ public boolean update(ModuleHolder moduleHolder) {
286287
if (type == ModuleHolder.Type.SEPARATOR && moduleHolder.filterLevel != 0) {
287288
this.buttonAction.setVisibility(View.VISIBLE);
288289
this.buttonAction.setImageResource(moduleHolder.filterLevel);
290+
this.buttonAction.setBackgroundResource(R.drawable.bg_baseline_circle_24);
289291
} else {
290292
this.buttonAction.setVisibility(
291293
type == ModuleHolder.Type.NOTIFICATION ?
292294
View.VISIBLE : View.GONE);
295+
this.buttonAction.setBackground(null);
293296
}
294297
this.switchMaterial.setVisibility(View.GONE);
295298
this.creditText.setVisibility(View.GONE);
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="32dp"
3+
android:height="32dp"
4+
android:tint="?attr/colorAccent"
5+
android:alpha="0.9"
6+
android:viewportHeight="24"
7+
android:viewportWidth="24">
8+
<path android:fillColor="@android:color/white" android:pathData="M12,2C6.47,2 2,6.47 2,12s4.47,10 10,10 10,-4.47 10,-10S17.53,2 12,2z"/>
9+
</vector>

0 commit comments

Comments
 (0)