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,13 +126,11 @@ public class EntryAdapter extends RecyclerView.Adapter<EntryHolder> implements I
}
public void refresh(boolean hard) {
if (!_tapToReveal) {
if (hard) {
notifyDataSetChanged();
} else {
for (EntryHolder holder : _holders) {
holder.refreshCode();
}
if (hard) {
notifyDataSetChanged();
} else {
for (EntryHolder holder : _holders) {
holder.refreshCode();
}
}
}

Loading…
Cancel
Save