Merge branch 'fix_uninstall_crash' into 'master'

fixes a crash that can be triggered when uninstalling with privext

See merge request fdroid/fdroidclient!888
This commit is contained in:
Hans-Christoph Steiner 2020-06-10 20:59:16 +00:00
commit 4031df22f4

View File

@ -591,7 +591,7 @@ public class AppDetailsActivity extends AppCompatActivity
String errorMessage =
intent.getStringExtra(Installer.EXTRA_ERROR_MESSAGE);
if (!TextUtils.isEmpty(errorMessage)) {
if (!TextUtils.isEmpty(errorMessage) && !isFinishing()) {
Log.e(TAG, "uninstall aborted with errorMessage: " + errorMessage);
AlertDialog.Builder alertBuilder = new AlertDialog.Builder(AppDetailsActivity.this);