mirror of
https://github.com/ActivityLauncher/ActivityLauncher.git
synced 2026-08-25 08:41:49 +00:00
Remove super.getView call in RecentTaskListFragment adapter.
Not only was this call unnecessary (since the default view is never used), but it also caused a force close in certain circumstances.
This commit is contained in:
parent
f9ea1fc3df
commit
62a12adea5
1 changed files with 1 additions and 3 deletions
|
|
@ -40,10 +40,8 @@ public class RecentTaskListFragment extends ListFragment {
|
|||
setListAdapter(new ArrayAdapter<String>(this.getActivity(), android.R.layout.simple_list_item_1, activity_names) {
|
||||
@Override
|
||||
public View getView(int position, View convertView, ViewGroup parent) {
|
||||
View view = super.getView(position, convertView, parent);
|
||||
|
||||
LayoutInflater inflater = (LayoutInflater)RecentTaskListFragment.this.getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
||||
view = inflater.inflate(R.layout.activity_list_item, parent, false);
|
||||
View view = inflater.inflate(R.layout.activity_list_item, parent, false);
|
||||
|
||||
TextView text = (TextView)view.findViewById(android.R.id.text1);
|
||||
ImageView image = (ImageView)view.findViewById(android.R.id.icon);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue