Skip to content

Commit

Permalink
delete customer log functions
Browse files Browse the repository at this point in the history
  • Loading branch information
u7759982 committed Oct 17, 2024
1 parent 9333fab commit ebadccb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1859,7 +1859,6 @@ public void onServiceStopped() {

@Override
public void onFullscreenStateChanged(final boolean fullscreen) {
Log.d("Jumbay", "onFullscreenStateChanged: fullscreen = " + fullscreen);
setupBrightness();
if (!isPlayerAndPlayerServiceAvailable()
|| player.UIs().get(MainPlayerUi.class).isEmpty()
Expand Down Expand Up @@ -2309,19 +2308,15 @@ private void setupBottomPlayer() {
@Override
public void onStateChanged(@NonNull final View bottomSheet, final int newState) {
updateBottomSheetState(newState);
Log.d("Jumbay", "BottomSheetBehavior onStateChanged: newState = "
+ getStateName(newState));
switch (newState) {
case BottomSheetBehavior.STATE_HIDDEN:
Log.d("Jumbay", "Bottom sheet state changed to HIDDEN");
moveFocusToMainFragment(true);
manageSpaceAtTheBottom(true);

bottomSheetBehavior.setPeekHeight(0);
cleanUp();
break;
case BottomSheetBehavior.STATE_EXPANDED:
Log.d("Jumbay", "Bottom sheet state changed to EXPANDED");
moveFocusToMainFragment(false);
manageSpaceAtTheBottom(false);

Expand All @@ -2342,7 +2337,6 @@ && isPlayerAvailable()
setOverlayLook(binding.appBarLayout, behavior, 1);
break;
case BottomSheetBehavior.STATE_COLLAPSED:
Log.d("Jumbay", "Bottom sheet state changed to COLLAPSED");
moveFocusToMainFragment(true);
manageSpaceAtTheBottom(false);

Expand All @@ -2357,9 +2351,7 @@ && isPlayerAvailable()
setOverlayLook(binding.appBarLayout, behavior, 0);
break;
case BottomSheetBehavior.STATE_DRAGGING:
Log.d("Jumbay", "Bottom sheet state changed to DRAGGING");
case BottomSheetBehavior.STATE_SETTLING:
Log.d("Jumbay", "Bottom sheet state changed to SETTLING");
if (isFullscreen()) {
showSystemUi();
}
Expand All @@ -2372,7 +2364,6 @@ && isPlayerAvailable()
}
break;
case BottomSheetBehavior.STATE_HALF_EXPANDED:
Log.d("Jumbay", "Bottom sheet state changed to HALF_EXPANDED");
break;
}
}
Expand Down
11 changes: 0 additions & 11 deletions app/src/main/java/org/schabi/newpipe/player/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,6 @@ public void handleIntent(@NonNull final Intent intent) {

final PlayerType oldPlayerType = playerType;
playerType = PlayerType.retrieveFromIntent(intent);
Log.d("Jumbay", "handleIntent: playerType changed from "
+ oldPlayerType + " to " + playerType);
initUIsForCurrentPlayerType();
// We need to setup audioOnly before super(), see "sourceOf"
isAudioOnly = audioPlayerSelected();
Expand Down Expand Up @@ -464,8 +462,6 @@ public void handleIntent(@NonNull final Intent intent) {
if (oldPlayerType != playerType && playQueue != null) {
// If playerType changes from one to another we should reload the player
// (to disable/enable video stream or to set quality)
Log.d("Jumbay", "handleIntent: PlayerType changed from "
+ oldPlayerType + " to " + playerType + ", reloading player");
setRecovery();
reloadPlayQueueManager();
}
Expand All @@ -475,13 +471,9 @@ public void handleIntent(@NonNull final Intent intent) {
}

private void initUIsForCurrentPlayerType() {
Log.d("Jumbay", "initUIsForCurrentPlayerType: Initializing UI for playerType = "
+ playerType);
if ((UIs.get(MainPlayerUi.class).isPresent() && playerType == PlayerType.MAIN)
|| (UIs.get(PopupPlayerUi.class).isPresent() && playerType == PlayerType.POPUP)) {
// correct UI already in place
Log.d("Jumbay", "initUIsForCurrentPlayerType: UI already in place for playerType = "
+ playerType);
return;
}

Expand All @@ -497,17 +489,14 @@ private void initUIsForCurrentPlayerType() {

switch (playerType) {
case MAIN:
Log.d("Jumbay", "initUIsForCurrentPlayerType: Switching to MAIN player UI");
UIs.destroyAll(PopupPlayerUi.class);
UIs.addAndPrepare(new MainPlayerUi(this, binding));
break;
case POPUP:
Log.d("Jumbay", "initUIsForCurrentPlayerType: Switching to POPUP player UI");
UIs.destroyAll(MainPlayerUi.class);
UIs.addAndPrepare(new PopupPlayerUi(this, binding));
break;
case AUDIO:
Log.d("Jumbay", "initUIsForCurrentPlayerType: Switching to AUDIO player UI");
UIs.destroyAll(VideoPlayerUi.class);
break;
}
Expand Down

0 comments on commit ebadccb

Please sign in to comment.