From 46827a9dc86d5faa787c7c8b840fe251bcd7c062 Mon Sep 17 00:00:00 2001 From: Shridhar Goel Date: Tue, 20 Aug 2019 02:25:58 +0530 Subject: [PATCH] chore: Use confirmed sessions instead of accepted sessions (#1909) --- app/src/main/res/layout/event_statistics.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/res/layout/event_statistics.xml b/app/src/main/res/layout/event_statistics.xml index 76019396e..0446fd31b 100644 --- a/app/src/main/res/layout/event_statistics.xml +++ b/app/src/main/res/layout/event_statistics.xml @@ -55,7 +55,7 @@ @@ -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" /> + android:progress="@{eventStatistics.sessionsSubmitted == 0 ? 0 : (int) ((eventStatistics.sessionsConfirmed*100)/eventStatistics.sessionsSubmitted)}" /> + android:text='@{(eventStatistics.sessionsSubmitted == 0 ? 0 : (int) ((eventStatistics.sessionsConfirmed*100)/eventStatistics.sessionsSubmitted)) + "%"}' />