Use newer APIs for detecting network changes.

This commit is contained in:
Cody Henthorne
2022-02-02 15:41:50 -05:00
parent 9b0dec7ece
commit f091502949
5 changed files with 153 additions and 51 deletions

View File

@@ -67,7 +67,7 @@ public class NewConversationActivity extends ContactSelectionActivity
} else {
Log.i(TAG, "[onContactSelected] Maybe creating a new recipient.");
if (SignalStore.account().isRegistered() && NetworkConstraint.isMet(this)) {
if (SignalStore.account().isRegistered() && NetworkConstraint.isMet(getApplication())) {
Log.i(TAG, "[onContactSelected] Doing contact refresh.");
AlertDialog progress = SimpleProgressDialog.show(this);