Add tap to reveal preference to results

pull/53/head
Michael Schättgen 6 years ago
parent 0e6828fae1
commit d57fc8b79a

@ -159,7 +159,9 @@ public class MainActivity extends AegisActivity implements EntryListView.Listene
recreate();
} else if (data.getBooleanExtra("needsRefresh", false)) {
boolean showAccountName = getPreferences().isAccountNameVisible();
boolean tapToReveal = getPreferences().isTapToRevealEnabled();
_entryListView.setShowAccountName(showAccountName);
_entryListView.setTapToReveal(tapToReveal);
_entryListView.refresh(true);
}
}

@ -126,7 +126,6 @@ public class EntryAdapter extends RecyclerView.Adapter<EntryHolder> implements I
}
public void refresh(boolean hard) {
if (!_tapToReveal) {
if (hard) {
notifyDataSetChanged();
} else {
@ -135,7 +134,6 @@ public class EntryAdapter extends RecyclerView.Adapter<EntryHolder> implements I
}
}
}
}
public void setGroupFilter(String group) {
_groupFilter = group;

Loading…
Cancel
Save