Browse Source

fixed crash in landscape, update to kotlin 1.3

pull/20/head
Jannik 3 years ago
parent
commit
f8ecf18de7
  1. 1
      .gitignore
  2. 2
      app/build.gradle
  3. 3
      app/src/main/AndroidManifest.xml
  4. 3
      app/src/main/java/org/mosad/seil0/projectlaogai/MensaFragment.kt
  5. 2
      build.gradle

1
.gitignore

@ -13,6 +13,7 @@
bin/
gen/
out/
app/release/
# Gradle files
.gradle/

2
app/build.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'

3
app/src/main/AndroidManifest.xml

@ -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"/>

3
app/src/main/java/org/mosad/seil0/projectlaogai/MensaFragment.kt

@ -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"

2
build.gradle

@ -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…
Cancel
Save