forked from github/wulkanowy-mirror
Disable optimization in r8 config and fix crash in grade fragment (#1226)
This commit is contained in:
parent
3f6159e976
commit
21ef2adcf6
@ -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 {
|
||||
|
2
app/proguard-rules.pro
vendored
2
app/proguard-rules.pro
vendored
@ -23,4 +23,4 @@
|
||||
|
||||
|
||||
#Config for Material Components
|
||||
-keep class com.google.android.material.tabs.** { *; }
|
||||
-keep class com.google.android.material.tabs.** { *; }
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user