pull/94/head
kunfei 5 years ago
parent 158be0770b
commit f3bb8e5517
  1. 1
      app/src/main/java/io/legado/app/help/storage/Preferences.kt

@ -30,7 +30,6 @@ object Preferences {
val fieldMPreferencesDir = objMBase.javaClass.getDeclaredField("mPreferencesDir")
fieldMPreferencesDir.isAccessible = true
// 创建自定义路径
// String FILE_PATH = Environment.getExternalStorageDirectory().getAbsolutePath()+"/Android";
val file = File(dir)
// 修改mPreferencesDir变量的值
fieldMPreferencesDir.set(objMBase, file)

Loading…
Cancel
Save