mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-29 17:11:12 +01:00
Select swipe left/right folder
This commit is contained in:
@@ -55,14 +55,14 @@ public class ViewModelMessages extends ViewModel {
|
||||
}
|
||||
|
||||
void observe(AdapterMessage.ViewType viewType, LifecycleOwner owner, Observer<PagedList<TupleMessageEx>> observer) {
|
||||
if (owner.getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.RESUMED)) {
|
||||
if (owner.getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.INITIALIZED)) {
|
||||
final boolean thread = (viewType == AdapterMessage.ViewType.THREAD);
|
||||
messages.get(thread).observe(owner, observer);
|
||||
}
|
||||
}
|
||||
|
||||
void removeObservers(AdapterMessage.ViewType viewType, LifecycleOwner owner) {
|
||||
if (owner.getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.RESUMED)) {
|
||||
if (owner.getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.INITIALIZED)) {
|
||||
boolean thread = (viewType == AdapterMessage.ViewType.THREAD);
|
||||
LiveData<PagedList<TupleMessageEx>> list = messages.get(thread);
|
||||
if (list != null)
|
||||
|
||||
Reference in New Issue
Block a user