mirror of
				https://framagit.org/tom79/fedilab-tube
				synced 2025-06-05 21:09:11 +02:00 
			
		
		
		
	Some fixes
This commit is contained in:
		@@ -537,6 +537,9 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd
 | 
			
		||||
            binding.doubleTapPlayerView.setPlayer(player);
 | 
			
		||||
            binding.loader.setVisibility(View.GONE);
 | 
			
		||||
            player.setPlayWhenReady(autoPlay);
 | 
			
		||||
            if (autoPlay) {
 | 
			
		||||
                binding.doubleTapPlayerView.hideController();
 | 
			
		||||
            }
 | 
			
		||||
            captions = null;
 | 
			
		||||
        }
 | 
			
		||||
        currentResolution = null;
 | 
			
		||||
@@ -819,6 +822,9 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd
 | 
			
		||||
                    autoPlay, position, null, null);
 | 
			
		||||
            player.prepare();
 | 
			
		||||
            player.setPlayWhenReady(autoPlay);
 | 
			
		||||
            if (autoPlay) {
 | 
			
		||||
                binding.doubleTapPlayerView.hideController();
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -951,6 +957,9 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd
 | 
			
		||||
            player.seekTo(0, position);
 | 
			
		||||
        }
 | 
			
		||||
        player.setPlayWhenReady(autoPlay);
 | 
			
		||||
        if (autoPlay) {
 | 
			
		||||
            binding.doubleTapPlayerView.hideController();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
@@ -1010,6 +1019,9 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd
 | 
			
		||||
        onStopCalled = false;
 | 
			
		||||
        if (player != null && !player.isPlaying()) {
 | 
			
		||||
            player.setPlayWhenReady(autoPlay);
 | 
			
		||||
            if (autoPlay) {
 | 
			
		||||
                binding.doubleTapPlayerView.hideController();
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -70,7 +70,7 @@ public class MenuAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
 | 
			
		||||
 | 
			
		||||
        final MenuItemVideo menuItemVideo = menuItemVideos.get(i);
 | 
			
		||||
 | 
			
		||||
        Glide.with(context).load(menuItemVideo.getIcon()).into(holder.binding.menuIcon);
 | 
			
		||||
        holder.binding.menuIcon.setImageResource(menuItemVideo.getIcon());
 | 
			
		||||
        holder.binding.title.setText(menuItemVideo.getTitle());
 | 
			
		||||
        holder.binding.itemMenuContainer.setOnClickListener(v -> {
 | 
			
		||||
            itemClicked.onItemClicked(menuItemVideo.getAction());
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user