Skip to content

Commit

Permalink
fix: RepeaterPlus menu icon
Browse files Browse the repository at this point in the history
  • Loading branch information
HdShare committed Jun 15, 2024
1 parent 3ee62de commit a1be8c9
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 16 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/cc/hicore/hook/RepeaterPlus.java
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ public void onGetMenuNt(@NonNull Object msg, @NonNull String componentType, @Non
if (ContextUtils.getCurrentActivity().getClass().getName().contains("MultiForwardActivity")) {
return;
}
Object item = CustomMenu.createItemIconNt(msg, "+1", R.drawable.ic_item_add_72dp, R.id.item_repeat, () -> {
Object item = CustomMenu.createItemIconNt(msg, "+1", R.drawable.ic_item_repeat_72dp, R.id.item_repeat, () -> {
if (isMessageRepeatable(msg)) {
repeatByForwardNt(msg);
} else {
Expand Down
15 changes: 0 additions & 15 deletions app/src/main/res/drawable/ic_item_add_72dp.xml

This file was deleted.

29 changes: 29 additions & 0 deletions app/src/main/res/drawable/ic_item_repeat_72dp.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:height="72dp"
android:viewportHeight="1024"
android:viewportWidth="1024"
android:width="72dp">

<path
android:fillColor="#00000000"
android:pathData="M82,512a430,430 0,1 0,860 0a430,430 0,1 0,-860 0z"
android:strokeColor="#ffffff"
android:strokeWidth="99" />

<path
android:fillColor="#ffffff"
android:pathData="M652.7,282h104v466.7h-105z" />

<path
android:fillColor="#ffffff"
android:pathData="M509,470l-0,84l-298,0l-0,-84z" />

<path
android:fillColor="#ffffff"
android:pathData="M318,363h84v298h-84z" />

<path
android:fillColor="#ffffff"
android:pathData="m655,281l-139,68.7l1,92.3l137,-61.6l1,-99.4z" />

</vector>

0 comments on commit a1be8c9

Please sign in to comment.