diff options
author | Vincent Breitmoser <valodim@mugenguild.com> | 2014-10-13 16:43:17 +0200 |
---|---|---|
committer | Vincent Breitmoser <valodim@mugenguild.com> | 2014-10-13 16:43:17 +0200 |
commit | 40850b933b1b1ae67aac4ee729489aaf8b9c1211 (patch) | |
tree | 75b660f6c31f889c0ff3a585ace12b7a38c2b3f7 | |
parent | e9abe57aa744c0ec9ea933e02822e23f8bb38544 (diff) | |
download | open-keychain-40850b933b1b1ae67aac4ee729489aaf8b9c1211.tar.gz open-keychain-40850b933b1b1ae67aac4ee729489aaf8b9c1211.tar.bz2 open-keychain-40850b933b1b1ae67aac4ee729489aaf8b9c1211.zip |
actually remove filter spinner code. that's what git is for~
-rw-r--r-- | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/KeyListFragment.java | 46 |
1 files changed, 0 insertions, 46 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 23b673bcc..8aa6db28d 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/KeyListFragment.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/KeyListFragment.java @@ -102,7 +102,6 @@ public class KeyListFragment extends LoaderFragment private KeyListAdapter mAdapter; private StickyListHeadersListView mStickyList; private ListAwareSwipeRefreshLayout mSwipeRefreshLayout; -// private Spinner mFilterSpinner; // saves the mode object for multiselect, needed for reset at some point private ActionMode mActionMode = null; @@ -220,15 +219,6 @@ public class KeyListFragment extends LoaderFragment } } - /* - @Override - public void onResume() { - String[] servers = Preferences.getPreferences(getActivity()).getKeyServers(); - mSwipeRefreshLayout.setIsLocked(servers == null || servers.length == 0 || servers[0] == null); - super.onResume(); - } - */ - /** * Define Adapter and Loader on create of Activity */ @@ -237,42 +227,6 @@ public class KeyListFragment extends LoaderFragment public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); -// 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)); - - ArrayAdapter<String> dataAdapter = new ArrayAdapter<String> - (getActivity(), android.R.layout.simple_spinner_item, list); - - 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) { -// -// } -// }); - mStickyList.setOnItemClickListener(this); mStickyList.setAreHeadersSticky(true); mStickyList.setDrawingListUnderStickyHeader(false); |