mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-31 07:13:00 +00:00 
			
		
		
		
	Improve bug detection
- Show a message with the appropriate error (network error)
This commit is contained in:
		| @@ -818,6 +818,15 @@ public class PopupVideoPlayer extends Service implements StateInterface { | |||||||
|                         }); |                         }); | ||||||
|                     } |                     } | ||||||
|                 }); |                 }); | ||||||
|  |             } catch (IOException ie) { | ||||||
|  |                 if (DEBUG) ie.printStackTrace(); | ||||||
|  |                 mainHandler.post(new Runnable() { | ||||||
|  |                     @Override | ||||||
|  |                     public void run() { | ||||||
|  |                         Toast.makeText(PopupVideoPlayer.this, R.string.network_error, Toast.LENGTH_SHORT).show(); | ||||||
|  |                     } | ||||||
|  |                 }); | ||||||
|  |                 stopSelf(); | ||||||
|             } catch (Exception e) { |             } catch (Exception e) { | ||||||
|                 if (DEBUG) e.printStackTrace(); |                 if (DEBUG) e.printStackTrace(); | ||||||
|                 mainHandler.post(new Runnable() { |                 mainHandler.post(new Runnable() { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 mauriciocolli
					mauriciocolli