Fix input types

feature/top10
Aurelien Hubert 7 years ago
parent 9cf68a789a
commit 203c1ed8b0
  1. 4
      app/src/main/java/net/pokeranalytics/android/model/realm/Bankroll.kt
  2. 6
      app/src/main/java/net/pokeranalytics/android/model/realm/Game.kt
  3. 4
      app/src/main/java/net/pokeranalytics/android/model/realm/Location.kt
  4. 2
      app/src/main/java/net/pokeranalytics/android/model/realm/Session.kt

@ -1,6 +1,5 @@
package net.pokeranalytics.android.model.realm package net.pokeranalytics.android.model.realm
import android.text.InputType
import io.realm.RealmList import io.realm.RealmList
import io.realm.RealmObject import io.realm.RealmObject
import io.realm.annotations.Ignore import io.realm.annotations.Ignore
@ -76,8 +75,7 @@ open class Bankroll(name: String = "") : RealmObject(), Savable,
SimpleRow.NAME -> data.add( SimpleRow.NAME -> data.add(
RowRepresentableEditDescriptor( RowRepresentableEditDescriptor(
this.name, this.name,
SimpleRow.NAME.resId, SimpleRow.NAME.resId
InputType.TYPE_CLASS_TEXT
) )
) )
} }

@ -53,15 +53,13 @@ open class Game : RealmObject(), Savable, RowRepresentableDataSource,
SimpleRow.NAME -> data.add( SimpleRow.NAME -> data.add(
RowRepresentableEditDescriptor( RowRepresentableEditDescriptor(
this.name, this.name,
SimpleRow.NAME.resId, SimpleRow.NAME.resId
InputType.TYPE_CLASS_TEXT
) )
) )
GameRow.SHORT_NAME -> data.add( GameRow.SHORT_NAME -> data.add(
RowRepresentableEditDescriptor( RowRepresentableEditDescriptor(
this.shortName, this.shortName,
GameRow.SHORT_NAME.resId, GameRow.SHORT_NAME.resId
InputType.TYPE_CLASS_TEXT
) )
) )
} }

@ -1,6 +1,5 @@
package net.pokeranalytics.android.model.realm package net.pokeranalytics.android.model.realm
import android.text.InputType
import io.realm.RealmObject import io.realm.RealmObject
import io.realm.annotations.Ignore import io.realm.annotations.Ignore
import io.realm.annotations.PrimaryKey import io.realm.annotations.PrimaryKey
@ -55,8 +54,7 @@ open class Location : RealmObject(), Savable, RowRepresentableDataSource, RowRep
SimpleRow.NAME -> data.add( SimpleRow.NAME -> data.add(
RowRepresentableEditDescriptor( RowRepresentableEditDescriptor(
this.name, this.name,
SimpleRow.NAME.resId, SimpleRow.NAME.resId
InputType.TYPE_CLASS_TEXT
) )
) )
} }

@ -480,7 +480,7 @@ open class Session : RealmObject(), SessionInterface, Savable,
data.add( data.add(
RowRepresentableEditDescriptor( RowRepresentableEditDescriptor(
tournamentNumberOfPlayers?.toString(), tournamentNumberOfPlayers?.toString(),
inputType = InputType.TYPE_NUMBER_FLAG_SIGNED inputType = InputType.TYPE_CLASS_NUMBER
) )
) )
} }

Loading…
Cancel
Save