Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
s1204IT committed Oct 26, 2024
1 parent d23d630 commit 8bb21ca
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ public Option(String name, int id, boolean checked) {
public Option blockTracking = new Option("block_tracking", R.string.switch_block_tracking, false);
public Option stopVersionCheck = new Option("stop_version_check", R.string.switch_stop_version_check, false);
public Option outputCommunication = new Option("output_communication", R.string.switch_output_communication, false);
public Option Archived = new Option("Archived_message", R.string.switch_archived, false);
public Option calltone = new Option("calltone", R.string.calltone, false);
public Option archived = new Option("archived_message", R.string.switch_archived, false);
public Option callTone = new Option("call_tone", R.string.call_tone, false);

public Option[] options = {
removeVoom,
Expand All @@ -52,12 +52,12 @@ public Option(String name, int id, boolean checked) {
openInBrowser,
preventMarkAsRead,
preventUnsendMessage,
Archived,
archived,
sendMuteMessage,
removeKeepUnread,
blockTracking,
stopVersionCheck,
outputCommunication,
calltone
callTone
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class Ringtone implements IHook {
@Override
public void hook(LimeOptions limeOptions, XC_LoadPackage.LoadPackageParam loadPackageParam) throws Throwable {

if (!limeOptions.calltone.checked) return;
if (!limeOptions.call_tone.checked) return;

XposedBridge.hookAllMethods(
loadPackageParam.classLoader.loadClass(Constants.RESPONSE_HOOK.className),
Expand All @@ -41,8 +41,6 @@ protected void afterHookedMethod(MethodHookParam param) throws Throwable {
if (ringtone != null && ringtone.isPlaying()) {
ringtone.stop();
isPlaying = false;


}
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-ja/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<string name="modify_response">レスポンスを改変</string>
<string name="button_copy">コピー</string>
<string name="button_paste">ペースト</string>
<string name="calltone">LsPatch用 着信音を鳴らす</string>
<string name="call_tone">着信音を鳴らす(LSPatch用)</string>
<!-- Menu -->
<string name="switch_keep_unread">未読のまま閲覧</string>

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<string name="modify_response">Modify responses</string>
<string name="button_copy">Copy</string>
<string name="button_paste">Paste</string>
<string name="calltone">Notify ringtone for LsPatch</string>
<string name="call_tone">Notify ringtone of LSPatch</string>
<!-- Menu -->
<string name="switch_keep_unread">Keep unread</string>

Expand Down

0 comments on commit 8bb21ca

Please sign in to comment.