Remove assertion error in recipient preferences.

This commit is contained in:
Alan Evans 2019-12-04 10:11:49 -05:00 committed by Greyson Parrelli
parent fe1838d3fe
commit 977591ac82

View File

@ -194,10 +194,11 @@ public class RecipientPreferenceActivity extends PassphraseRequiredActionBarActi
() -> DatabaseFactory.getThreadDatabase(this).getThreadIdFor(recipientId),
(threadId) -> {
if (threadId == null) {
throw new AssertionError();
}
Log.i(TAG, "No thread id for recipient.");
} else {
this.threadPhotoRailLabel.setOnClickListener(v -> startActivity(MediaOverviewActivity.forThread(this, threadId)));
}
}
);
Toolbar toolbar = ViewUtil.findById(this, R.id.toolbar);