diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-10-13 15:53:39 +0200 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-10-13 15:53:39 +0200 |
commit | e9abe57aa744c0ec9ea933e02822e23f8bb38544 (patch) | |
tree | 18f94e92af5d87e5e9f2bb93dd8ee764bf9e3fa3 /OpenKeychain/src/main/java/org/sufficientlysecure/keychain | |
parent | bfafc44a33e1aa12c6846bace9001e04574f4c20 (diff) | |
download | open-keychain-e9abe57aa744c0ec9ea933e02822e23f8bb38544.tar.gz open-keychain-e9abe57aa744c0ec9ea933e02822e23f8bb38544.tar.bz2 open-keychain-e9abe57aa744c0ec9ea933e02822e23f8bb38544.zip |
Remove key list filter for now
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure/keychain')
-rw-r--r-- | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/KeyListFragment.java | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/KeyListFragment.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/KeyListFragment.java index 0a9af8673..23b673bcc 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/KeyListFragment.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/KeyListFragment.java @@ -102,12 +102,12 @@ public class KeyListFragment extends LoaderFragment private KeyListAdapter mAdapter; private StickyListHeadersListView mStickyList; private ListAwareSwipeRefreshLayout mSwipeRefreshLayout; - private Spinner mFilterSpinner; +// private Spinner mFilterSpinner; // saves the mode object for multiselect, needed for reset at some point private ActionMode mActionMode = null; - private boolean mShowAllKeys = false; + private boolean mShowAllKeys = true; private String mQuery; private SearchView mSearchView; @@ -237,7 +237,7 @@ public class KeyListFragment extends LoaderFragment public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); - mFilterSpinner = (Spinner) getActivity().findViewById(R.id.key_list_filter_spinner); +// mFilterSpinner = (Spinner) getActivity().findViewById(R.id.key_list_filter_spinner); List<String> list = new ArrayList<String>(); list.add(getString(R.string.key_list_filter_show_certified)); list.add(getString(R.string.key_list_filter_show_all)); @@ -248,30 +248,30 @@ public class KeyListFragment extends LoaderFragment dataAdapter.setDropDownViewResource (android.R.layout.simple_spinner_dropdown_item); - mFilterSpinner.setAdapter(dataAdapter); - - mFilterSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { - @Override - public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { - switch (position) { - case 0: { - mShowAllKeys = false; - getLoaderManager().restartLoader(0, null, KeyListFragment.this); - break; - } - case 1: { - mShowAllKeys = true; - getLoaderManager().restartLoader(0, null, KeyListFragment.this); - break; - } - } - } - - @Override - public void onNothingSelected(AdapterView<?> parent) { - - } - }); +// mFilterSpinner.setAdapter(dataAdapter); + +// mFilterSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { +// @Override +// public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { +// switch (position) { +// case 0: { +// mShowAllKeys = false; +// getLoaderManager().restartLoader(0, null, KeyListFragment.this); +// break; +// } +// case 1: { +// mShowAllKeys = true; +// getLoaderManager().restartLoader(0, null, KeyListFragment.this); +// break; +// } +// } +// } +// +// @Override +// public void onNothingSelected(AdapterView<?> parent) { +// +// } +// }); mStickyList.setOnItemClickListener(this); mStickyList.setAreHeadersSticky(true); |