mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-11-04 08:43:52 +01:00 
			
		
		
		
	Add forceLogin to case where authentication fails during upload
This commit is contained in:
		
							parent
							
								
									baab89c076
								
							
						
					
					
						commit
						e7d3584b8d
					
				
					 3 changed files with 13 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -239,10 +239,10 @@ public class UploadService extends HandlerService<Contribution> {
 | 
			
		|||
                    Timber.d("Successfully revalidated token!");
 | 
			
		||||
                } else {
 | 
			
		||||
                    Timber.d("Unable to revalidate :(");
 | 
			
		||||
                    // TODO: Put up a new notification, ask them to re-login
 | 
			
		||||
                    stopForeground(true);
 | 
			
		||||
                    Toast failureToast = Toast.makeText(this, R.string.authentication_failed, Toast.LENGTH_LONG);
 | 
			
		||||
                    failureToast.show();
 | 
			
		||||
                    sessionManager.forceLogin(this);
 | 
			
		||||
                    return;
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue