no error when opening url that looks like fedi url

This commit is contained in:
sk 2023-06-12 13:33:30 +02:00
parent bd2f05be67
commit 29b2a25840
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ public class ExternalShareActivity extends FragmentStackActivity{
.ifPresent(req -> .ifPresent(req ->
req.wrapProgress(this, R.string.loading, true, d -> { req.wrapProgress(this, R.string.loading, true, d -> {
UiUtils.transformDialogForLookup(this, accountId, isFediUrl ? text.get() : null, d); UiUtils.transformDialogForLookup(this, accountId, isFediUrl ? text.get() : null, d);
d.setOnDismissListener((ev) -> finish()); d.setOnDismissListener((x) -> finish());
})); }));
} else { } else {
openComposeFragment(accountId); openComposeFragment(accountId);

View File

@ -1232,7 +1232,7 @@ public class UiUtils {
go.accept(ProfileFragment.class, args); go.accept(ProfileFragment.class, args);
return; return;
} }
go.accept(null, bundleError(context.getString(R.string.sk_resource_not_found))); go.accept(null, null);
} }
@Override @Override