Don't call onAppChanged() if install was cancelled

It should have not changed anything about the app. It should make AppDetails
update anything as needed just like returning from any other activity.
This commit is contained in:
Daniel Martí 2015-09-03 18:31:24 -07:00
parent e72ccd3012
commit 74c93907c5

View File

@ -904,12 +904,6 @@ public class AppDetails extends AppCompatActivity implements ProgressListener, A
@Override
public void onError(int operation, final int errorCode) {
if (errorCode == InstallerCallback.ERROR_CODE_CANCELED) {
runOnUiThread(new Runnable() {
@Override
public void run() {
onAppChanged();
}
});
return;
}
final int title, body;