Skip to content

Commit

Permalink
Fix gap in VOD progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
samfundev committed Feb 18, 2022
1 parent 38e5f29 commit f8547f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions app/src/main/java/com/perflyst/twire/adapters/VODAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import android.widget.SeekBar;
import android.widget.TextView;

import androidx.cardview.widget.CardView;
Expand All @@ -36,7 +36,7 @@
class VODViewHolder extends MainActivityAdapter.ElementsViewHolder {
final ImageView vPreviewImage;
final TextView vDisplayName, vTitle, vGame, vTimeStamp;
final SeekBar vProgressBar;
final ProgressBar vProgressBar;
private final CardView vCard;

VODViewHolder(View v) {
Expand Down Expand Up @@ -175,7 +175,6 @@ void setViewData(VideoOnDemand element, VODViewHolder viewHolder) {
int vodLength = getSettings().getVodLength(element.getVideoId());

viewHolder.vProgressBar.setVisibility(View.VISIBLE);
viewHolder.vProgressBar.getThumb().mutate().setAlpha(0);
viewHolder.vProgressBar.setPadding(0, 0, 0, 0);

viewHolder.vPreviewImage.setAlpha(VOD_WATCHED_IMAGE_ALPHA);
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/cell_vod.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@
android:layout_height="wrap_content"
android:contentDescription="@string/my_streams_preview_image" />

<SeekBar
<ProgressBar
android:id="@+id/progressBar"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
Expand Down

0 comments on commit f8547f4

Please # to comment.