remove importRepo() method, it is very short and only used in one place
This commit is contained in:
		
							parent
							
								
									4820ab3694
								
							
						
					
					
						commit
						1c5256a5d7
					
				@ -278,11 +278,6 @@ public class ManageReposActivity extends ActionBarActivity {
 | 
				
			|||||||
        mDnsHelper.discoverServices();
 | 
					        mDnsHelper.discoverServices();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public void importRepo(String uri, String fingerprint) {
 | 
					 | 
				
			||||||
        isImportingRepo = true;
 | 
					 | 
				
			||||||
        showAddRepo(uri, fingerprint);
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    private void showAddRepo() {
 | 
					    private void showAddRepo() {
 | 
				
			||||||
        /*
 | 
					        /*
 | 
				
			||||||
         * If there is text in the clipboard, and it looks like a URL, use that.
 | 
					         * If there is text in the clipboard, and it looks like a URL, use that.
 | 
				
			||||||
@ -583,7 +578,8 @@ public class ManageReposActivity extends ActionBarActivity {
 | 
				
			|||||||
        /* an URL from a click, NFC, QRCode scan, etc */
 | 
					        /* an URL from a click, NFC, QRCode scan, etc */
 | 
				
			||||||
        NewRepoConfig newRepoConfig = new NewRepoConfig(this, intent);
 | 
					        NewRepoConfig newRepoConfig = new NewRepoConfig(this, intent);
 | 
				
			||||||
        if (newRepoConfig.isValidRepo()) {
 | 
					        if (newRepoConfig.isValidRepo()) {
 | 
				
			||||||
            importRepo(newRepoConfig.getRepoUriString(), newRepoConfig.getFingerprint());
 | 
					            isImportingRepo = true;
 | 
				
			||||||
 | 
					            showAddRepo(newRepoConfig.getRepoUriString(), newRepoConfig.getFingerprint());
 | 
				
			||||||
            checkIfNewRepoOnSameWifi(newRepoConfig);
 | 
					            checkIfNewRepoOnSameWifi(newRepoConfig);
 | 
				
			||||||
        } else if (newRepoConfig.getErrorMessage() != null) {
 | 
					        } else if (newRepoConfig.getErrorMessage() != null) {
 | 
				
			||||||
            Toast.makeText(this, newRepoConfig.getErrorMessage(), Toast.LENGTH_LONG).show();
 | 
					            Toast.makeText(this, newRepoConfig.getErrorMessage(), Toast.LENGTH_LONG).show();
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user