mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-09-22 03:58:20 -04:00
Don't hard-code apks.get(0) when showing permissions
This commit is contained in:
1 parent
b58cb74612
commit
d8df407b02
1 file changed
+2
-2
@@ -554,10 +554,10 @@ public class AppDetails extends ListActivity {
|
||||
tv = (TextView) infoView.findViewById(R.id.summary);
|
||||
tv.setText(app.summary);
|
||||
|
||||
if (pref_permissions && !app.apks.isEmpty()) {
|
||||
if (pref_permissions && app.curApk != null) {
|
||||
tv = (TextView) infoView.findViewById(R.id.permissions_list);
|
||||
|
||||
CommaSeparatedList permsList = app.apks.get(0).detail_permissions;
|
||||
CommaSeparatedList permsList = app.curApk.detail_permissions;
|
||||
if (permsList == null) {
|
||||
tv.setText(getString(R.string.no_permissions));
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user