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