aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeapo <mohamed@zenadi.com>2017-09-10 16:16:32 +0200
committerzeapo <mohamed@zenadi.com>2017-09-10 16:16:32 +0200
commitbc173404c9d233589d30ebcc013875890af86fe0 (patch)
tree43ff6e86b11d86ca3927de35f8d38d6f76e30f06
parent33821659aec1ac352c1b2cc7a6b830a6838b325b (diff)
cleanup unused variables
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/SelectFolderFragment.java17
1 files changed, 0 insertions, 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<ArrayList<PasswordItem>> passListStack;
private Stack<File> pathStack;
- private Stack<Integer> 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();