Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
whats-open-android
Commits
094abe19
Commit
094abe19
authored
Feb 09, 2017
by
Robert Hitt
Browse files
Fixed bug with duration display
parent
48f241e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/srct/whatsopen/views/adapters/FacilityListAdapter.java
View file @
094abe19
...
...
@@ -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
);
}
}
...
...
app/src/main/res/values/strings.xml
View file @
094abe19
...
...
@@ -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
Preference
s
</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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment