mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-04-19 22:37:09 -04:00
[app] crash when long pressing version name in about dialog
This commit is contained in:
@@ -436,7 +436,11 @@ public class PreferencesFragment extends PreferenceFragmentCompat
|
||||
|
||||
String versionName = Utils.getVersionName(context);
|
||||
if (versionName != null) {
|
||||
((TextView) view.findViewById(R.id.version)).setText(versionName);
|
||||
TextView versionNameView = view.findViewById(R.id.version);
|
||||
versionNameView.setText(versionName);
|
||||
versionNameView.setOnLongClickListener(v -> {
|
||||
throw new RuntimeException("BOOM!");
|
||||
});
|
||||
}
|
||||
new MaterialAlertDialogBuilder(context)
|
||||
.setView(view)
|
||||
|
||||
Reference in New Issue
Block a user