made refresh work for non-root directories too

This commit is contained in:
Zeapo 2014-08-06 23:20:26 +01:00
parent 02b9e9932f
commit ad7b051144

View file

@ -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"))));
}
}