修复了仓库权限BUG

This commit is contained in:
muqing 2024-04-18 14:26:30 +08:00
parent bef72863ae
commit a8822131b1
2 changed files with 4 additions and 2 deletions

View File

@ -32,7 +32,7 @@ android {
minSdkVersion 23 minSdkVersion 23
targetSdkVersion 33 targetSdkVersion 33
versionCode 28 versionCode 28
versionName "2.1.1 Bata6(2024-4-18)" versionName "2.1.1 Test1(2024-4-18)"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
} }

View File

@ -45,8 +45,10 @@ class WarehouseFragment : BaseFragment<FragmentWarehouseBinding>() {
} }
.onForwardToSettings { scope, deniedList -> .onForwardToSettings { scope, deniedList ->
scope.showForwardToSettingsDialog(deniedList, "您需要手动允许设置中的必要权限", "授权", "取消") scope.showForwardToSettingsDialog(deniedList, "您需要手动允许设置中的必要权限", "授权", "取消")
}.request { allGranted, _, _ ->
if (allGranted) {
}
} }
if (isAdded) { if (isAdded) {
val mainActivity = activity as MainActivity val mainActivity = activity as MainActivity
/* if (tableLayout == null) { /* if (tableLayout == null) {