Disable optimization in r8 config and fix crash in grade fragment (#1226)

This commit is contained in:
Rafał Borcz 2021-03-16 12:49:17 +01:00 committed by GitHub
parent 3f6159e976
commit 21ef2adcf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -60,7 +60,7 @@ android {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
debug {

View File

@ -23,4 +23,4 @@
#Config for Material Components
-keep class com.google.android.material.tabs.** { *; }
-keep class com.google.android.material.tabs.** { *; }

View File

@ -50,7 +50,7 @@ class GradePresenter @Inject constructor(
fun onSemesterSwitch(): Boolean {
if (semesters.isNotEmpty()) {
view?.showSemesterDialog(selectedIndex - 1, semesters.slice(0..1))
view?.showSemesterDialog(selectedIndex - 1, semesters.take(2))
}
return true
}