when adding new repos via Intents, clean out Activities from the Task
This commit is contained in:
		
							parent
							
								
									1a7c73064f
								
							
						
					
					
						commit
						06e922a35e
					
				| @ -271,6 +271,9 @@ public class ManageReposActivity extends AppCompatActivity | ||||
|                         @Override | ||||
|                         public void onClick(DialogInterface dialog, int which) { | ||||
|                             dialog.dismiss(); | ||||
|                             if (isImportingRepo) { | ||||
|                                 ManageReposActivity.this.finish(); | ||||
|                             } | ||||
|                         } | ||||
|                     }); | ||||
| 
 | ||||
|  | ||||
| @ -345,8 +345,10 @@ public class MainActivity extends AppCompatActivity implements BottomNavigationB | ||||
|                 } else { | ||||
|                     startActivity(new Intent(ACTION_ADD_REPO, intent.getData(), this, ManageReposActivity.class)); | ||||
|                 } | ||||
|                 finish(); | ||||
|             } else if (parser.getErrorMessage() != null) { | ||||
|                 Toast.makeText(this, parser.getErrorMessage(), Toast.LENGTH_LONG).show(); | ||||
|                 finish(); | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Hans-Christoph Steiner
						Hans-Christoph Steiner