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

Fixed bug with duration display

parent 48f241e0
...@@ -66,18 +66,9 @@ public class FacilityListAdapter extends ...@@ -66,18 +66,9 @@ public class FacilityListAdapter extends
// set the RV cell to be highlighted // set the RV cell to be highlighted
holder.itemView.setBackgroundColor(ContextCompat holder.itemView.setBackgroundColor(ContextCompat
.getColor(context, R.color.facilityOpen)); .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 { } else {
holder.itemView.setBackgroundColor(ContextCompat holder.itemView.setBackgroundColor(ContextCompat
.getColor(context, R.color.facilityClosed)); .getColor(context, R.color.facilityClosed));
// setItemPaddingInDp(holder.textLayout, 15);
holder.durationTextView.setVisibility(View.GONE);
//holder.nameTextView.setTypeface(null, Typeface.NORMAL);
} }
if (facility.isFavorited()) { if (facility.isFavorited()) {
...@@ -120,11 +111,9 @@ public class FacilityListAdapter extends ...@@ -120,11 +111,9 @@ public class FacilityListAdapter extends
// display the duration text // display the duration text
setItemPaddingInDp(holder.textLayout, 8); setItemPaddingInDp(holder.textLayout, 8);
holder.durationTextView.setVisibility(View.VISIBLE); holder.durationTextView.setVisibility(View.VISIBLE);
holder.nameTextView.setTypeface(null, Typeface.BOLD);
} else { } else {
setItemPaddingInDp(holder.textLayout, 15); setItemPaddingInDp(holder.textLayout, 15);
holder.durationTextView.setVisibility(View.GONE); holder.durationTextView.setVisibility(View.GONE);
holder.nameTextView.setTypeface(null, Typeface.NORMAL);
} }
} }
......
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
<string name="remove_all_text">Remove All</string> <string name="remove_all_text">Remove All</string>
<!-- Strings for PreferenceFragment --> <!-- 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_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_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 name="title_turn_off_vibrations">Turn off vibrations</string>
<string-array name="entries_list_view_information_preference"> <string-array name="entries_list_view_information_preference">
<item>Both</item> <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