From ad7b05114434494323dd078b0bd221608609a680 Mon Sep 17 00:00:00 2001 From: Zeapo Date: Wed, 6 Aug 2014 23:20:26 +0100 Subject: [PATCH] made refresh work for non-root directories too --- app/src/main/java/com/zeapo/pwdstore/PasswordFragment.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/zeapo/pwdstore/PasswordFragment.java b/app/src/main/java/com/zeapo/pwdstore/PasswordFragment.java index 261729eb..ab7c8a77 100644 --- a/app/src/main/java/com/zeapo/pwdstore/PasswordFragment.java +++ b/app/src/main/java/com/zeapo/pwdstore/PasswordFragment.java @@ -3,6 +3,7 @@ package com.zeapo.pwdstore; import android.app.Activity; import android.os.Bundle; import android.app.Fragment; +import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -111,7 +112,7 @@ public class PasswordFragment extends Fragment implements AbsListView.OnItemClic public void updateAdapter() { mAdapter.clear(); - mAdapter.addAll(PasswordRepository.getPasswords()); + mAdapter.addAll(PasswordRepository.getPasswords(new File(getArguments().getString("Path")))); } }