Fixes the behaviour of cancel button
This commit is contained in:
		
							parent
							
								
									dd0f791e3f
								
							
						
					
					
						commit
						88e567354e
					
				@ -713,7 +713,6 @@ public class AppDetails2 extends AppCompatActivity implements ShareChooserDialog
 | 
			
		||||
    public void installCancel() {
 | 
			
		||||
        if (isAppDownloading()) {
 | 
			
		||||
            InstallManagerService.cancel(this, currentStatus.getUniqueKey());
 | 
			
		||||
            adapter.clearProgress();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -379,7 +379,6 @@ public final class AppUpdateStatusManager {
 | 
			
		||||
            AppUpdateStatus entry = appMapping.get(key);
 | 
			
		||||
            if (entry != null) {
 | 
			
		||||
                Utils.debugLog(LOGTAG, "Remove APK " + entry.apk.apkName);
 | 
			
		||||
                appMapping.remove(entry.apk.getUrl());
 | 
			
		||||
                notifyRemove(entry);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@ -246,7 +246,9 @@ public class DownloaderService extends Service {
 | 
			
		||||
    private void sendBroadcast(Uri uri, String action, File file, String errorMessage, long repoId,
 | 
			
		||||
                               String originalUrlString) {
 | 
			
		||||
        Intent intent = new Intent(action);
 | 
			
		||||
        intent.setData(Uri.parse(originalUrlString));
 | 
			
		||||
        if (originalUrlString != null) {
 | 
			
		||||
            intent.setData(Uri.parse(originalUrlString));
 | 
			
		||||
        }
 | 
			
		||||
        if (file != null) {
 | 
			
		||||
            intent.putExtra(Downloader.EXTRA_DOWNLOAD_PATH, file.getAbsolutePath());
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user