Skip to content
This repository was archived by the owner on Oct 20, 2023. It is now read-only.

Commit 33a553a

Browse files
committed
3.2.1
1 parent 5f7a282 commit 33a553a

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ android {
2121
applicationId "io.github.mzdluo123.mirai.android"
2222
minSdkVersion 26
2323
targetSdkVersion 30
24-
versionCode 51
25-
versionName "3.2.0"
24+
versionCode 52
25+
versionName "3.2.1"
2626
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2727
buildConfigField("String", "COREVERSION", "\"$CORE_VERSION\"")
2828
buildConfigField("String", "CONSOLEVERSION", "\"$CONSOLE_VERSION\"")

app/src/main/java/io/github/mzdluo123/mirai/android/activity/MainActivity.kt

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import io.github.mzdluo123.mirai.android.utils.shareText
2121
import kotlinx.android.synthetic.main.activity_main.*
2222
import kotlinx.android.synthetic.main.app_bar_main.*
2323
import kotlinx.coroutines.*
24+
import org.apache.commons.io.FileUtils
2425
import splitties.alertdialog.appcompat.*
2526
import splitties.toast.toast
2627
import java.io.File
@@ -59,6 +60,7 @@ class MainActivity : AppCompatActivity() {
5960
setSupportActionBar(toolbar)
6061
setupActionBarWithNavController(navController, appBarConfiguration)
6162
nav_view.setupWithNavController(navController)
63+
6264
lifecycleScope.launch(Dispatchers.IO) {
6365
Glide.get(applicationContext).clearDiskCache()
6466
}
@@ -118,12 +120,12 @@ class MainActivity : AppCompatActivity() {
118120
}
119121
cancelButton { }
120122
}.show()
121-
crashDataFile.renameTo(
122-
File(
123-
getExternalFilesDir(CRASH_FILE_DIR),
124-
CRASH_FILE_PREFIX + System.currentTimeMillis()
125-
)
126-
)
123+
124+
lifecycleScope.launch (Dispatchers.IO){
125+
FileUtils.moveFile(crashDataFile,File(
126+
getExternalFilesDir(CRASH_FILE_DIR),
127+
CRASH_FILE_PREFIX + System.currentTimeMillis()))
128+
}
127129
}
128130

129131
// private fun updateCheck() {
@@ -155,7 +157,7 @@ class MainActivity : AppCompatActivity() {
155157

156158
private fun updateCheckV2() {
157159
val exceptionHandler = CoroutineExceptionHandler { _, throwable ->
158-
toast("检查更新失败")
160+
runOnUiThread { toast("检查更新失败") }
159161
throwable.printStackTrace()
160162
Log.e(TAG, throwable.message ?: return@CoroutineExceptionHandler)
161163
}

docs/changelog.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
3.2.0
1+
3.2.1
22
https://maupdate.rainchan.win/app-normal-release.apk
3-
修复了无法通过设备锁验证的问题
4-
从此版本开始,MA将会每次发布两个不同的版本,普通版版只能在Android8.0及以上系统使用,兼容版版增加了一些兼容性措施使得它能在8.0以下系统使用。
5-
更新默认为普通版,兼容版下载请到GitHub了解更多信息
3+
修复了部分系统无法编译插件的问题
4+
修复了网络异常导致的启动崩溃问题
5+
更新mirai-core到2.7-M1

0 commit comments

Comments
 (0)