Add Net Hourly

feature/top10
Aurelien Hubert 7 years ago
parent 475a4e64ce
commit 7a839db397
  1. 6
      app/src/main/java/net/pokeranalytics/android/model/realm/Session.kt
  2. 4
      app/src/main/res/layout/row_header_title_amount.xml

@ -250,7 +250,7 @@ open class Session : RealmObject(), SessionInterface, Savable,
} }
@Ignore @Ignore
override var estimatedHands: Double = 25.0 * (this.timeFrame?.hourlyDuration?.toDouble() ?: 0.0) override var estimatedHands: Double = 25.0 * (this.timeFrame?.hourlyDuration ?: 0.0)
@Ignore @Ignore
override var bbNetResult: Double = 0.0 override var bbNetResult: Double = 0.0
@ -321,8 +321,8 @@ open class Session : RealmObject(), SessionInterface, Savable,
) )
rows.add( rows.add(
HeaderRowRepresentable( HeaderRowRepresentable(
RowViewType.HEADER_TITLE_VALUE, RowViewType.HEADER_TITLE_AMOUNT,
resId = R.string.hour_rate_without_pauses, value = result?.net.toString() resId = R.string.hour_rate_without_pauses, value = this.sessionSet?.hourlyRate.toString()
) )
) )

@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/rowHeaderTitleAmount.container" android:id="@+id/rowHeaderTitleAmount.container"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="48dp"
android:orientation="vertical"> android:orientation="vertical">
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
@ -19,7 +19,6 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="16dp" android:layout_marginTop="16dp"
android:layout_marginBottom="16dp" android:layout_marginBottom="16dp"
android:fontFamily="@font/roboto_medium"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="@+id/guidelineStart" app:layout_constraintStart_toStartOf="@+id/guidelineStart"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
@ -34,7 +33,6 @@
android:layout_marginTop="16dp" android:layout_marginTop="16dp"
android:layout_marginBottom="16dp" android:layout_marginBottom="16dp"
android:ellipsize="end" android:ellipsize="end"
android:fontFamily="@font/roboto_medium"
android:gravity="end" android:gravity="end"
android:maxLines="1" android:maxLines="1"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"

Loading…
Cancel
Save