1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-31 21:15:50 +01:00

added comment

This commit is contained in:
dakhnod 2019-12-04 00:22:19 +01:00
parent 3bbc7a9046
commit d355b509d4

View File

@ -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();
}