mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-11-04 09:13:00 +00:00 
			
		
		
		
	Use ErrorActivity to notifiy about errors occourred while loading channel details
This commit is contained in:
		@@ -59,12 +59,14 @@ public enum StreamDialogDefaultEntry {
 | 
			
		||||
                                .setUploaderUrl(serviceId, url, result.getUploaderUrl())
 | 
			
		||||
                                .subscribeOn(Schedulers.io()).subscribe();
 | 
			
		||||
                        openChannelFragment(fragment, item, result.getUploaderUrl());
 | 
			
		||||
                    }, throwable -> Toast.makeText(
 | 
			
		||||
                            // TODO: Open the Error Activity
 | 
			
		||||
                            fragment.getContext(),
 | 
			
		||||
                            R.string.error_show_channel_details,
 | 
			
		||||
                            Toast.LENGTH_SHORT
 | 
			
		||||
                    ).show());
 | 
			
		||||
                    }, throwable -> ErrorUtil.openActivity(
 | 
			
		||||
                            fragment.requireContext(),
 | 
			
		||||
                            new ErrorInfo(
 | 
			
		||||
                                    throwable,
 | 
			
		||||
                                    UserAction.REQUESTED_CHANNEL,
 | 
			
		||||
                                    url,
 | 
			
		||||
                                    serviceId
 | 
			
		||||
                            )));
 | 
			
		||||
        } else {
 | 
			
		||||
            openChannelFragment(fragment, item, item.getUploaderUrl());
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user