Browse Source

fixed crash in landscape, update to kotlin 1.3

tags/0.2.0
Jannik Seiler 1 year ago
parent
commit
f8ecf18de7
5 changed files with 6 additions and 5 deletions
  1. +1
    -0
      .gitignore
  2. +1
    -1
      app/build.gradle
  3. +2
    -1
      app/src/main/AndroidManifest.xml
  4. +1
    -2
      app/src/main/java/org/mosad/seil0/projectlaogai/MensaFragment.kt
  5. +1
    -1
      build.gradle

+ 1
- 0
.gitignore View File

@@ -13,6 +13,7 @@
bin/
gen/
out/
app/release/

# Gradle files
.gradle/


+ 1
- 1
app/build.gradle View File

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


+ 2
- 1
app/src/main/AndroidManifest.xml View File

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



+ 1
- 2
app/src/main/java/org/mosad/seil0/projectlaogai/MensaFragment.kt View File

@@ -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
- 1
build.gradle View File

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