call requestLayout() on mQueuePosView

Seems to fix the issue on Android 5.x, so we can get rid of the hint-hack
This commit is contained in:
Adrian Ulrich 2015-10-05 20:35:48 +02:00
parent 1ede004545
commit a04aa57f7a
2 changed files with 1 additions and 2 deletions

View File

@ -49,7 +49,6 @@ THE SOFTWARE.
<TextView
android:id="@+id/queue_pos"
android:singleLine="true"
android:hint="00/00"
android:gravity="right"
android:layout_gravity="top" />
</TableRow>

View File

@ -337,7 +337,7 @@ public class FullPlaybackActivity extends PlaybackActivity
PlaybackService service = PlaybackService.get(this);
mQueuePosView.setText((service.getTimelinePosition() + 1) + "/" + service.getTimelineLength());
}
mInfoTable.requestLayout(); // ensure queue pos column has enough room
mQueuePosView.requestLayout(); // ensure queue pos column has enough room
}
@Override