Skip to content

Commit

Permalink
Try to fix cut of off text for some people.
Browse files Browse the repository at this point in the history
  • Loading branch information
mopsalarm committed Aug 20, 2017
1 parent f7c3031 commit fd7be24
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import java.util.Collections.emptyList
/**
*/
class UserSuggestionService(private val api: Api) {
private val logger = LoggerFactory.getLogger("UserSuggestionService")
private val suggestionCache = LruCache<String, List<String>>(128)

fun suggestUsers(prefix: String): List<String> {
return suggestionCache.getOrPut(prefix.toLowerCase()) {
internalSuggestUsers(it)
Expand All @@ -31,9 +34,4 @@ class UserSuggestionService(private val api: Api) {
return emptyList()
}
}

companion object {
private val logger = LoggerFactory.getLogger("UserSuggestionService")
private val suggestionCache = LruCache<String, List<String>>(128)
}
}
3 changes: 1 addition & 2 deletions app/src/main/res/layout/circle_chart_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
android:layout_gravity="center"
android:gravity="center"
android:orientation="vertical"
android:padding="16dp"
>
android:padding="16dp">

<TextView
android:id="@+id/value"
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,6 @@
<style name="Statistics.VoteBehaviour.Value">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_marginBottom">-2dp</item>
<item name="android:layout_marginTop">-4dp</item>
<item name="android:includeFontPadding">false</item>
<item name="android:textAppearance">@style/TextAppearance.AppCompat.Large</item>
<item name="android:textStyle">bold</item>
Expand Down

0 comments on commit fd7be24

Please sign in to comment.