mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 18:30:20 +01:00
Switch the conversation list to our own paging library.
This commit is contained in:
committed by
Alan Evans
parent
b7477d287b
commit
4b5f1d64e6
@@ -65,7 +65,11 @@ public final class LiveDataUtil {
|
||||
MediatorLiveData<B> outputLiveData = new MediatorLiveData<>();
|
||||
Executor liveDataExecutor = new SerialMonoLifoExecutor(executor);
|
||||
|
||||
outputLiveData.addSource(source, currentValue -> liveDataExecutor.execute(() -> outputLiveData.postValue(backgroundFunction.apply(currentValue))));
|
||||
outputLiveData.addSource(source, currentValue -> {
|
||||
liveDataExecutor.execute(() -> {
|
||||
outputLiveData.postValue(backgroundFunction.apply(currentValue));
|
||||
});
|
||||
});
|
||||
|
||||
return outputLiveData;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user