From bc173404c9d233589d30ebcc013875890af86fe0 Mon Sep 17 00:00:00 2001 From: zeapo Date: Sun, 10 Sep 2017 16:16:32 +0200 Subject: cleanup unused variables --- .../java/com/zeapo/pwdstore/SelectFolderFragment.java | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/app/src/main/java/com/zeapo/pwdstore/SelectFolderFragment.java b/app/src/main/java/com/zeapo/pwdstore/SelectFolderFragment.java index f4a91425..506a74fa 100644 --- a/app/src/main/java/com/zeapo/pwdstore/SelectFolderFragment.java +++ b/app/src/main/java/com/zeapo/pwdstore/SelectFolderFragment.java @@ -33,9 +33,7 @@ public class SelectFolderFragment extends Fragment{ } // store the pass files list in a stack - private Stack> passListStack; private Stack pathStack; - private Stack scrollPosition; private FolderRecyclerAdapter recyclerAdapter; private RecyclerView recyclerView; private OnFragmentInteractionListener mListener; @@ -51,8 +49,6 @@ public class SelectFolderFragment extends Fragment{ super.onCreate(savedInstanceState); String path = getArguments().getString("Path"); - passListStack = new Stack<>(); - scrollPosition = new Stack<>(); pathStack = new Stack<>(); recyclerAdapter = new FolderRecyclerAdapter((SelectFolderActivity) getActivity(), mListener, PasswordRepository.getPasswords(new File(path), PasswordRepository.getRepositoryDirectory(getActivity()))); @@ -73,14 +69,6 @@ public class SelectFolderFragment extends Fragment{ // Set the adapter recyclerView.setAdapter(recyclerAdapter); - final FloatingActionButton fab = (FloatingActionButton) view.findViewById(R.id.fab); - fab.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - ((PasswordStore) getActivity()).createPassword(); - } - }); - registerForContextMenu(recyclerView); return view; } @@ -92,13 +80,8 @@ public class SelectFolderFragment extends Fragment{ mListener = new OnFragmentInteractionListener() { public void onFragmentInteraction(PasswordItem item) { if (item.getType() == PasswordItem.TYPE_CATEGORY) { - // push the current password list (non filtered plz!) - passListStack.push(pathStack.isEmpty() ? - PasswordRepository.getPasswords(PasswordRepository.getRepositoryDirectory(context)) : - PasswordRepository.getPasswords(pathStack.peek(), PasswordRepository.getRepositoryDirectory(context))); //push the category were we're going pathStack.push(item.getFile()); - scrollPosition.push(recyclerView.getVerticalScrollbarPosition()); recyclerView.scrollToPosition(0); recyclerAdapter.clear(); -- cgit v1.2.3