project clean up

This commit is contained in:
2020-08-21 10:59:25 +02:00
parent f458e50e7c
commit 983b8c559f
9 changed files with 107 additions and 12 deletions

View File

@@ -1,3 +1,5 @@
@file:Suppress("unused")
package me.zobrist.tichucounter
import android.os.Parcel
@@ -6,7 +8,7 @@ import android.os.Parcelable
class History() : Parcelable {
private var scores: ArrayList<Round> = ArrayList()
constructor(parcel: Parcel) : this(){
constructor(parcel: Parcel) : this() {
scores = parcel.readSerializable() as ArrayList<Round>
}

View File

@@ -237,7 +237,7 @@ class MainActivity : AppCompatActivity() {
inputTeamA.text.clear()
inputTeamB.text.clear()
scrolViewHistory.fullScroll(ScrollView.FOCUS_DOWN)
scrollViewHistory.fullScroll(ScrollView.FOCUS_DOWN)
}
}

View File

@@ -14,8 +14,6 @@ class Round() {
}
}
constructor(score: String, isScoreA: Boolean): this(score.toInt(), isScoreA)
constructor(scoreA: Int, scoreB: Int) : this() {
this.scoreA = scoreA
this.scoreB = scoreB