Skip to content

Commit

Permalink
chore: Use confirmed sessions instead of accepted sessions (#1909)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShridharGoel authored and iamareebjamal committed Aug 19, 2019
1 parent b91f798 commit 46827a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/src/main/res/layout/event_statistics.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@{eventStatistics.sessionsAccepted}"
android:text="@{eventStatistics.sessionsConfirmed}"
android:textSize="@dimen/text_size_large"
android:textStyle="bold" />

Expand All @@ -71,7 +71,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="@string/sessions_accepted"
android:text="@string/sessions_confirmed"
android:textSize="@dimen/text_size_normal" />

<LinearLayout
Expand All @@ -84,14 +84,14 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:max="100"
android:progress="@{eventStatistics.sessionsSubmitted == 0 ? 0 : (int) ((eventStatistics.sessionsAccepted*100)/eventStatistics.sessionsSubmitted)}" />
android:progress="@{eventStatistics.sessionsSubmitted == 0 ? 0 : (int) ((eventStatistics.sessionsConfirmed*100)/eventStatistics.sessionsSubmitted)}" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/spacing_extra_small"
android:layout_marginStart="@dimen/spacing_extra_small"
android:text='@{(eventStatistics.sessionsSubmitted == 0 ? 0 : (int) ((eventStatistics.sessionsAccepted*100)/eventStatistics.sessionsSubmitted)) + "%"}' />
android:text='@{(eventStatistics.sessionsSubmitted == 0 ? 0 : (int) ((eventStatistics.sessionsConfirmed*100)/eventStatistics.sessionsSubmitted)) + "%"}' />

</LinearLayout>
</LinearLayout>
Expand Down

0 comments on commit 46827a9

Please sign in to comment.