mirror of
https://github.com/areteruhiro/LIME-beta-hiro.git
synced 2025-02-10 23:41:38 +09:00
コードの変更
This commit is contained in:
parent
a57a9362a6
commit
8c990f106d
@ -10,7 +10,7 @@ android {
|
|||||||
minSdk 28
|
minSdk 28
|
||||||
targetSdk 35
|
targetSdk 35
|
||||||
versionCode 116151
|
versionCode 116151
|
||||||
versionName "1.16.15ea"
|
versionName "1.16.15a"
|
||||||
multiDexEnabled false
|
multiDexEnabled false
|
||||||
proguardFiles += 'proguard-rules.pro'
|
proguardFiles += 'proguard-rules.pro'
|
||||||
buildConfigField 'String', 'HOOK_TARGET_VERSION', '"141910383"'
|
buildConfigField 'String', 'HOOK_TARGET_VERSION', '"141910383"'
|
||||||
|
@ -54,7 +54,7 @@ public class RingTone implements IHook {
|
|||||||
int resourceId = moduleContext.getResources().getIdentifier(resourceName, "raw", "io.github.hiro.lime");
|
int resourceId = moduleContext.getResources().getIdentifier(resourceName, "raw", "io.github.hiro.lime");
|
||||||
|
|
||||||
|
|
||||||
File ringtoneDir = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_RINGTONES), "LimeBackup");
|
File ringtoneDir = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS), "LimeBackup");
|
||||||
if (!ringtoneDir.exists()) {
|
if (!ringtoneDir.exists()) {
|
||||||
ringtoneDir.mkdirs();
|
ringtoneDir.mkdirs();
|
||||||
}
|
}
|
||||||
@ -144,7 +144,7 @@ public class RingTone implements IHook {
|
|||||||
int resourceId = moduleContext.getResources().getIdentifier(resourceName, "raw", "io.github.hiro.lime");
|
int resourceId = moduleContext.getResources().getIdentifier(resourceName, "raw", "io.github.hiro.lime");
|
||||||
|
|
||||||
|
|
||||||
File ringtoneDir = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_RINGTONES), "LimeBackup");
|
File ringtoneDir = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS), "LimeBackup");
|
||||||
if (!ringtoneDir.exists()) {
|
if (!ringtoneDir.exists()) {
|
||||||
ringtoneDir.mkdirs(); // ディレクトリが存在しない場合は作成
|
ringtoneDir.mkdirs(); // ディレクトリが存在しない場合は作成
|
||||||
}
|
}
|
||||||
@ -169,7 +169,7 @@ public class RingTone implements IHook {
|
|||||||
|
|
||||||
if (ringtone != null) {
|
if (ringtone != null) {
|
||||||
|
|
||||||
Log.d("Xposed", "Playing ringtone.");
|
//Log.d("Xposed", "Playing ringtone.");
|
||||||
ringtone.play();
|
ringtone.play();
|
||||||
isPlaying = true;
|
isPlaying = true;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user