mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-31 21:15:50 +01:00
added comment
This commit is contained in:
parent
3bbc7a9046
commit
d355b509d4
@ -195,6 +195,7 @@ public class ConfigActivity extends AbstractGBActivity {
|
||||
GB.toast("error getting configurations", Toast.LENGTH_SHORT, GB.ERROR, e);
|
||||
list = new ArrayList<>();
|
||||
}
|
||||
// null is added to indicate the plus button added handled in PackageAdapter#getView
|
||||
list.add(null);
|
||||
appList.setAdapter(adapter = new PackageAdapter(this, R.layout.qhybrid_package_settings_item, list));
|
||||
appList.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {
|
||||
@ -495,6 +496,7 @@ public class ConfigActivity extends AbstractGBActivity {
|
||||
e.printStackTrace();
|
||||
GB.toast("error getting configurations", Toast.LENGTH_SHORT, GB.ERROR, e);
|
||||
}
|
||||
// null is added to indicate the plus button added handled in PackageAdapter#getView
|
||||
list.add(null);
|
||||
adapter.notifyDataSetChanged();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user