Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
Signed-off-by: Amr Hossam <[email protected]>
  • Loading branch information
amrhossamdev committed Aug 23, 2024
1 parent 90866cf commit 8afdcd2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ public static void showSharedInfoDetailsTextView(Context context, View surveyVie
surveySharedInfo.append(", ");
}
}
hideQuestionsView(surveyView);
sharedInfoTextView.setVisibility(View.VISIBLE);
sharedInfoTextView.setText(surveySharedInfo);
}
Expand Down Expand Up @@ -285,4 +286,9 @@ public static void hideProgress(View surveyView){
progress.setVisibility(View.GONE);
}

private static void hideQuestionsView(View surveyView){
View questionsView = surveyView.findViewById(R.id.questionsContainer);
questionsView.setVisibility(View.GONE);
}

}
4 changes: 2 additions & 2 deletions onebusaway-android/src/main/res/layout/item_survey.xml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@


<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/constraintLayout"
android:id="@+id/questionsContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintBottom_toTopOf="@+id/shared_info_tv"
Expand Down Expand Up @@ -166,11 +166,11 @@
<TextView
android:id="@+id/shared_info_tv"
android:layout_width="0dp"
android:visibility="gone"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="8dp"
android:visibility="gone"
app:layout_constraintBottom_toTopOf="@+id/nextBtn"
app:layout_constraintEnd_toStartOf="@+id/openExternalSurveyBtn"
app:layout_constraintStart_toStartOf="parent"
Expand Down

0 comments on commit 8afdcd2

Please sign in to comment.