mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-11-04 09:13:00 +00:00 
			
		
		
		
	Better naming
This commit is contained in:
		@@ -3759,14 +3759,14 @@ public final class Player implements
 | 
			
		||||
            context.sendBroadcast(new Intent(VideoDetailFragment.ACTION_HIDE_MAIN_PLAYER));
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        afterOnClick(v);
 | 
			
		||||
        manageControlsAfterOnClick(v);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Function that should be executed after a click occured on the player UI.
 | 
			
		||||
     * Manages the controls after a click occurred on the player UI.
 | 
			
		||||
     * @param v – The view that was clicked
 | 
			
		||||
     */
 | 
			
		||||
    public void afterOnClick(@NonNull final View v) {
 | 
			
		||||
    public void manageControlsAfterOnClick(@NonNull final View v) {
 | 
			
		||||
        if (currentState == STATE_COMPLETED) {
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
@@ -42,6 +42,6 @@ class PlaybackSpeedClickListener(
 | 
			
		||||
            player.isSomePopupMenuVisible = true
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        player.afterOnClick(v)
 | 
			
		||||
        player.manageControlsAfterOnClick(v)
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -36,6 +36,6 @@ class QualityClickListener(
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        player.saveWasPlaying()
 | 
			
		||||
        player.afterOnClick(v)
 | 
			
		||||
        player.manageControlsAfterOnClick(v)
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user