Commit 094abe19 authored by Robert Hitt's avatar Robert Hitt

Fixed bug with duration display

parent 48f241e0
......@@ -66,18 +66,9 @@ public class FacilityListAdapter extends
// set the RV cell to be highlighted
holder.itemView.setBackgroundColor(ContextCompat
.getColor(context, R.color.facilityOpen));
// show the duration that the facility will be open
// setItemPaddingInDp(holder.textLayout, 8);
holder.durationTextView.setVisibility(View.VISIBLE);
//holder.nameTextView.setTypeface(null, Typeface.BOLD);
} else {
holder.itemView.setBackgroundColor(ContextCompat
.getColor(context, R.color.facilityClosed));
// setItemPaddingInDp(holder.textLayout, 15);
holder.durationTextView.setVisibility(View.GONE);
//holder.nameTextView.setTypeface(null, Typeface.NORMAL);
}
if (facility.isFavorited()) {
......@@ -120,11 +111,9 @@ public class FacilityListAdapter extends
// display the duration text
setItemPaddingInDp(holder.textLayout, 8);
holder.durationTextView.setVisibility(View.VISIBLE);
holder.nameTextView.setTypeface(null, Typeface.BOLD);
} else {
setItemPaddingInDp(holder.textLayout, 15);
holder.durationTextView.setVisibility(View.GONE);
holder.nameTextView.setTypeface(null, Typeface.NORMAL);
}
}
......
......@@ -5,11 +5,11 @@
<string name="remove_all_text">Remove All</string>
<!-- Strings for PreferenceFragment -->
<string name="title_list_view">List View Preferences</string>
<string name="title_list_view">List View</string>
<string name="title_list_view_information">Duration display</string>
<string name="title_rotation">Rotation Preferences</string>
<string name="title_rotation">Rotation</string>
<string name="title_turn_off_rotation">Turn off rotation</string>
<string name="title_notification">Notification Preferences</string>
<string name="title_notification">Notifications</string>
<string name="title_turn_off_vibrations">Turn off vibrations</string>
<string-array name="entries_list_view_information_preference">
<item>Both</item>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment