fixed crash in landscape, update to kotlin 1.3
This commit is contained in:
parent
f9a122558d
commit
f8ecf18de7
|
@ -13,6 +13,7 @@
|
|||
bin/
|
||||
gen/
|
||||
out/
|
||||
app/release/
|
||||
|
||||
# Gradle files
|
||||
.gradle/
|
||||
|
|
|
@ -30,7 +30,7 @@ dependencies {
|
|||
implementation 'com.google.android.material:material:1.0.0'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha2'
|
||||
implementation 'org.jsoup:jsoup:1.11.3'
|
||||
implementation "org.jetbrains.anko:anko-commons:0.10.4"
|
||||
implementation "org.jetbrains.anko:anko-commons:0.10.7"
|
||||
|
||||
implementation 'com.afollestad.material-dialogs:core:2.0.0-beta4'
|
||||
implementation 'com.afollestad.material-dialogs:color:2.0.0-beta4'
|
||||
|
|
|
@ -13,7 +13,8 @@
|
|||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:label="@string/app_name"
|
||||
android:theme="@style/AppTheme.NoActionBar">
|
||||
android:theme="@style/AppTheme.NoActionBar"
|
||||
android:screenOrientation="portrait">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
|
||||
|
|
|
@ -59,13 +59,12 @@ class MensaFragment : Fragment() {
|
|||
private fun addCurrentWeek() {
|
||||
|
||||
doAsync {
|
||||
val mensaParser = MensaParser()
|
||||
|
||||
uiThread {
|
||||
|
||||
for(day in Calendar.getInstance().get(Calendar.DAY_OF_WEEK)..7) {
|
||||
|
||||
var strDay: String = when(day) {
|
||||
val strDay: String = when(day) {
|
||||
Calendar.MONDAY -> "Mon"
|
||||
Calendar.TUESDAY -> "Die"
|
||||
Calendar.WEDNESDAY -> "Mit"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||
|
||||
buildscript {
|
||||
ext.kotlin_version = '1.2.71'
|
||||
ext.kotlin_version = '1.3.0'
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
|
|
Loading…
Reference in New Issue