fix issue with select apps
This commit is contained in:
		
							parent
							
								
									5d218adc14
								
							
						
					
					
						commit
						b2de89b2cb
					
				|  | @ -83,7 +83,7 @@ public class AppManagerActivity extends AppCompatActivity implements OnClickList | ||||||
| 
 | 
 | ||||||
|             protected void onPreExecute() { |             protected void onPreExecute() { | ||||||
|                 // Pre Code |                 // Pre Code | ||||||
|                 dialog = new ProgressDialog(AppManagerActivity.this); |                 dialog = new ProgressDialog(AppManagerActivity.this, android.support.v4.app.DialogFragment.STYLE_NO_TITLE); | ||||||
|                 dialog.show(); |                 dialog.show(); | ||||||
|             } |             } | ||||||
|             protected Void doInBackground(Void... unused) { |             protected Void doInBackground(Void... unused) { | ||||||
|  | @ -125,7 +125,7 @@ public class AppManagerActivity extends AppCompatActivity implements OnClickList | ||||||
|                 if (convertView == null) |                 if (convertView == null) | ||||||
|                     convertView = inflater.inflate(R.layout.layout_apps_item, parent, false); |                     convertView = inflater.inflate(R.layout.layout_apps_item, parent, false); | ||||||
|                 else |                 else | ||||||
|                     entry = (ListEntry) convertView.getTag();; |                     entry = (ListEntry) convertView.getTag(); | ||||||
| 
 | 
 | ||||||
|                 if (entry == null) { |                 if (entry == null) { | ||||||
|                     // Inflate a new view |                     // Inflate a new view | ||||||
|  | @ -134,8 +134,6 @@ public class AppManagerActivity extends AppCompatActivity implements OnClickList | ||||||
|                     entry.box = (CheckBox) convertView.findViewById(R.id.itemcheck); |                     entry.box = (CheckBox) convertView.findViewById(R.id.itemcheck); | ||||||
|                     entry.text = (TextView) convertView.findViewById(R.id.itemtext); |                     entry.text = (TextView) convertView.findViewById(R.id.itemtext); | ||||||
|                     convertView.setTag(entry); |                     convertView.setTag(entry); | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
|                 } |                 } | ||||||
| 
 | 
 | ||||||
|                 final TorifiedApp app = mApps.get(position); |                 final TorifiedApp app = mApps.get(position); | ||||||
|  | @ -162,6 +160,7 @@ public class AppManagerActivity extends AppCompatActivity implements OnClickList | ||||||
|                 if (entry.box != null) { |                 if (entry.box != null) { | ||||||
|                     entry.box.setOnClickListener(AppManagerActivity.this); |                     entry.box.setOnClickListener(AppManagerActivity.this); | ||||||
|                     entry.box.setChecked(app.isTorified()); |                     entry.box.setChecked(app.isTorified()); | ||||||
|  |                     entry.box.setTag(app); | ||||||
|                 } |                 } | ||||||
| 
 | 
 | ||||||
|                 return convertView; |                 return convertView; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue