Remove usages of deprecated Handler constructor.

This commit is contained in:
Alan Evans
2021-01-05 17:40:18 -04:00
parent 64312f9c7f
commit 6dd3fdaa55
16 changed files with 42 additions and 20 deletions

View File

@@ -3,7 +3,6 @@ package org.thoughtcrime.securesms.revealable;
import android.app.Application;
import android.database.ContentObserver;
import android.net.Uri;
import android.os.Handler;
import androidx.annotation.NonNull;
import androidx.lifecycle.LiveData;
@@ -33,7 +32,7 @@ class ViewOnceMessageViewModel extends ViewModel {
this.application = application;
this.repository = repository;
this.message = new MutableLiveData<>();
this.observer = new ContentObserver(new Handler()) {
this.observer = new ContentObserver(null) {
@Override
public void onChange(boolean selfChange) {
repository.getMessage(messageId, optionalMessage -> onMessageRetrieved(optionalMessage));