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:
@@ -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);
|
||||
|
@@ -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);
|
||||
|
@@ -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() {
|
||||
|
Reference in New Issue
Block a user