diff --git a/.idea/gradle.xml b/.idea/gradle.xml index ab232b8..2818960 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -16,7 +16,6 @@ - diff --git a/.idea/misc.xml b/.idea/misc.xml index bba6cb8..5f8ba6c 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -5,6 +5,7 @@ + diff --git a/.idea/modules.xml b/.idea/modules.xml index 35e7452..8bd560e 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -4,8 +4,17 @@ + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/java/xyz/fycz/myreader/ui/activity/ReadActivity.java b/app/src/main/java/xyz/fycz/myreader/ui/activity/ReadActivity.java index e502c38..7bb29d3 100644 --- a/app/src/main/java/xyz/fycz/myreader/ui/activity/ReadActivity.java +++ b/app/src/main/java/xyz/fycz/myreader/ui/activity/ReadActivity.java @@ -392,6 +392,10 @@ public class ReadActivity extends BaseActivity implements C @Override public void onLongPress() { + if (mSetting.getPageMode() == PageMode.SCROLL){ + ToastUtils.showWarring("滚动模式暂不支持长按复制"); + return; + } if (!binding.readPvContent.isRunning()) { selectTextCursorShow(); showAction(); @@ -2062,7 +2066,6 @@ public class ReadActivity extends BaseActivity implements C break; } url = url.replace("{key}", selectString); - Log.d("SEARCH_URL", url); try { Uri uri = Uri.parse(url); Intent intent = new Intent(Intent.ACTION_VIEW, uri); diff --git a/dynamic/build.gradle b/dynamic/build.gradle index 68196b3..adbb350 100644 --- a/dynamic/build.gradle +++ b/dynamic/build.gradle @@ -55,4 +55,5 @@ dependencies { compileOnly("me.fycz.maple:maple:1.7") compileOnly 'org.greenrobot:greendao:3.3.0' compileOnly project(":app") + compileOnly project(":DialogX") } \ No newline at end of file diff --git a/dynamic/src/main/java/xyz/fycz/dynamic/AppLoadImpl.kt b/dynamic/src/main/java/xyz/fycz/dynamic/AppLoadImpl.kt index dc42269..b3d299c 100644 --- a/dynamic/src/main/java/xyz/fycz/dynamic/AppLoadImpl.kt +++ b/dynamic/src/main/java/xyz/fycz/dynamic/AppLoadImpl.kt @@ -22,6 +22,7 @@ import android.app.AlertDialog import android.content.Context import android.content.SharedPreferences import android.os.Bundle +import com.kongzue.dialogx.dialogs.BottomDialog import me.fycz.maple.MapleBridge import me.fycz.maple.MapleUtils import me.fycz.maple.MethodHook @@ -95,13 +96,8 @@ class AppLoadImpl : IAppLoader { Bundle::class.java, object : MethodHook() { override fun afterHookedMethod(param: MapleBridge.MethodHookParam) { - val context = param.thisObject as Context App.getHandler().postDelayed({ - AlertDialog.Builder(context) - .setTitle(title) - .setMessage(msg) - .setPositiveButton("我知道了", null) - .create().show() + BottomDialog.show(title, msg).cancelButton = "知道了" }, 1000) } }