mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-27 22:37:15 +00:00
Bug 3205 - Font size in NavDrawer on Lollipop broken
This commit is contained in:
1 parent
969d14b46c
commit
9dd5367d49
2 files changed
+5
-2
No files matched your search
@@ -28,8 +28,10 @@
|
||||
android:id="@+id/races_all"
|
||||
style="?android:attr/borderlessButtonStyle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="bottom"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:text="@string/races_all"
|
||||
android:textColor="?sap_light_gray"
|
||||
android:textSize="@dimen/textSize_20"
|
||||
|
||||
+2
-1
@@ -10,6 +10,7 @@ import android.graphics.drawable.Drawable;
|
||||
import android.graphics.drawable.LayerDrawable;
|
||||
import android.support.v4.content.LocalBroadcastManager;
|
||||
import android.text.TextUtils;
|
||||
import android.util.TypedValue;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
@@ -187,7 +188,7 @@ public class ManagedRaceListAdapter extends ArrayAdapter<RaceListDataType> imple
|
||||
if (!TextUtils.isEmpty(duration) && duration.length() >= 6) {
|
||||
textSize = getContext().getResources().getDimension(R.dimen.textSize_32);
|
||||
}
|
||||
time.setTextSize(textSize);
|
||||
time.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize);
|
||||
}
|
||||
StartTimeFinderResult result = race.getRace().getState().getStartTimeFinderResult();
|
||||
if (result != null && result.isDependentStartTime()) {
|
||||
|
||||
Reference in new issue
Block a user