mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-04-20 06:47:06 -04:00
[app] Don't crash when not knowing app name while receiving ACTION_INSTALL_INTERRUPTED
Closes acra-crash-reports#143
This commit is contained in:
committed by
Hans-Christoph Steiner
parent
0629848c89
commit
ac87f48cf1
@@ -585,9 +585,8 @@ public class AppDetailsActivity extends AppCompatActivity
|
||||
if (!TextUtils.isEmpty(errorMessage) && !isFinishing()) {
|
||||
Log.e(TAG, "install aborted with errorMessage: " + errorMessage);
|
||||
|
||||
String title = String.format(
|
||||
getString(R.string.install_error_notify_title),
|
||||
app.name);
|
||||
String title = getString(R.string.install_error_notify_title,
|
||||
app == null ? "" : app.name);
|
||||
|
||||
AlertDialog.Builder alertBuilder = new AlertDialog.Builder(AppDetailsActivity.this);
|
||||
alertBuilder.setTitle(title);
|
||||
|
||||
Reference in New Issue
Block a user