change fix dialog style

pull/22/head
fengyuecanzhu 3 years ago
parent cd362e0fd9
commit e5fbc9024d
  1. 1
      .idea/gradle.xml
  2. 1
      .idea/misc.xml
  3. 9
      .idea/modules.xml
  4. 5
      app/src/main/java/xyz/fycz/myreader/ui/activity/ReadActivity.java
  5. 1
      dynamic/build.gradle
  6. 8
      dynamic/src/main/java/xyz/fycz/dynamic/AppLoadImpl.kt

@ -16,7 +16,6 @@
<option value="$PROJECT_DIR$/dynamic" />
</set>
</option>
<option name="resolveModulePerSourceSet" value="false" />
</GradleProjectSettings>
</option>
</component>

@ -5,6 +5,7 @@
<map>
<entry key="..\:/android/FYReader/app/src/main/res/layout/activity_donate.xml" value="0.264" />
<entry key="..\:/android/FYReader/app/src/main/res/layout/activity_more_setting.xml" value="0.2" />
<entry key="..\:/android/FYReader/app/src/main/res/layout/activity_read.xml" value="0.12132725430597771" />
<entry key="..\:/android/FYReader/app/src/main/res/layout/activity_user_info.xml" value="0.2" />
<entry key="..\:/android/FYReader/app/src/main/res/layout/fragment_private_bookcase.xml" value="0.12132725430597771" />
<entry key="..\:/android/FYReader/app/src/main/res/layout/fragment_proxy_setting.xml" value="0.22826086956521738" />

@ -4,8 +4,17 @@
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/modules/FYReader.iml" filepath="$PROJECT_DIR$/.idea/modules/FYReader.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/modules/DialogX/FYReader.DialogX.iml" filepath="$PROJECT_DIR$/.idea/modules/DialogX/FYReader.DialogX.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/modules/DialogX/FYReader.DialogX.androidTest.iml" filepath="$PROJECT_DIR$/.idea/modules/DialogX/FYReader.DialogX.androidTest.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/modules/DialogX/FYReader.DialogX.main.iml" filepath="$PROJECT_DIR$/.idea/modules/DialogX/FYReader.DialogX.main.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/modules/DialogX/FYReader.DialogX.unitTest.iml" filepath="$PROJECT_DIR$/.idea/modules/DialogX/FYReader.DialogX.unitTest.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/modules/app/FYReader.app.iml" filepath="$PROJECT_DIR$/.idea/modules/app/FYReader.app.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/modules/app/FYReader.app.androidTest.iml" filepath="$PROJECT_DIR$/.idea/modules/app/FYReader.app.androidTest.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/modules/app/FYReader.app.main.iml" filepath="$PROJECT_DIR$/.idea/modules/app/FYReader.app.main.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/modules/app/FYReader.app.unitTest.iml" filepath="$PROJECT_DIR$/.idea/modules/app/FYReader.app.unitTest.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/modules/dynamic/FYReader.dynamic.iml" filepath="$PROJECT_DIR$/.idea/modules/dynamic/FYReader.dynamic.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/modules/dynamic/FYReader.dynamic.androidTest.iml" filepath="$PROJECT_DIR$/.idea/modules/dynamic/FYReader.dynamic.androidTest.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/modules/dynamic/FYReader.dynamic.main.iml" filepath="$PROJECT_DIR$/.idea/modules/dynamic/FYReader.dynamic.main.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/modules/dynamic/FYReader.dynamic.unitTest.iml" filepath="$PROJECT_DIR$/.idea/modules/dynamic/FYReader.dynamic.unitTest.iml" />
</modules>
</component>
</project>

@ -392,6 +392,10 @@ public class ReadActivity extends BaseActivity<ActivityReadBinding> 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<ActivityReadBinding> 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);

@ -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")
}

@ -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)
}
}

Loading…
Cancel
Save