2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 21:55:10 +00:00

Made error list header not selectable

This commit is contained in:
Albert Vaca
2014-09-29 17:55:29 -07:00
parent dd4421dce2
commit 6afbe93c2d
3 changed files with 4 additions and 2 deletions

View File

@@ -62,6 +62,9 @@ public class DeviceActivity extends ActionBarActivity {
if (errorHeader == null) {
errorHeader = new TextView(DeviceActivity.this);
errorHeader.setPadding(0,24,0,0);
errorHeader.setOnClickListener(null);
errorHeader.setOnLongClickListener(null);
errorHeader.setText(getResources().getString(R.string.plugins_failed_to_load));
}
errorList.addHeaderView(errorHeader);

View File

@@ -23,7 +23,6 @@ public class SectionItem implements ListAdapter.Item {
v.setOnClickListener(null);
v.setOnLongClickListener(null);
v.setLongClickable(false);
TextView sectionView = (TextView) v.findViewById(R.id.list_item_category_text);
sectionView.setText(title);

View File

@@ -133,7 +133,7 @@ public class MainActivity extends ActionBarActivity {
}
}
if (section.isEmpty) {
items.remove(items.size()-1); //Remove section
items.remove(items.size()-1); //Remove remembered devices section if empty
}
runOnUiThread(new Runnable() {