mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-30 23:03:00 +00:00 
			
		
		
		
	-Fixed minimizing to popup player does not destroying existing player when drawing over app permission is not granted.
This commit is contained in:
		| @@ -219,11 +219,10 @@ public final class MainVideoPlayer extends AppCompatActivity | |||||||
|                 getWindow().getAttributes().screenBrightness); |                 getWindow().getAttributes().screenBrightness); | ||||||
|  |  | ||||||
|         if (playerImpl == null) return; |         if (playerImpl == null) return; | ||||||
|         if (isBackPressed) { |         if (!isBackPressed) { | ||||||
|             playerImpl.destroy(); |  | ||||||
|         } else { |  | ||||||
|             playerImpl.minimize(); |             playerImpl.minimize(); | ||||||
|         } |         } | ||||||
|  |         playerImpl.destroy(); | ||||||
|  |  | ||||||
|         isInMultiWindow = false; |         isInMultiWindow = false; | ||||||
|         isBackPressed = false; |         isBackPressed = false; | ||||||
| @@ -465,7 +464,8 @@ public final class MainVideoPlayer extends AppCompatActivity | |||||||
|                     onFullScreenButtonClicked(); |                     onFullScreenButtonClicked(); | ||||||
|                     break; |                     break; | ||||||
|                 case PlayerHelper.MinimizeMode.MINIMIZE_ON_EXIT_MODE_NONE: |                 case PlayerHelper.MinimizeMode.MINIMIZE_ON_EXIT_MODE_NONE: | ||||||
|                     destroy(); |                 default: | ||||||
|  |                     // No action | ||||||
|                     break; |                     break; | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 John Zhen Mo
					John Zhen Mo