Bug 3205 - Font size in NavDrawer on Lollipop broken

This commit is contained in:
Peter Siegmund committed 2015-08-12 14:02:07 +02:00
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"
@@ -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()) {