Don't hard-code apks.get(0) when showing permissions
This commit is contained in:
		
							parent
							
								
									b58cb74612
								
							
						
					
					
						commit
						d8df407b02
					
				@ -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 {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user