PR cleanup #1164

Merged
akinwale merged 32 commits from pr-1118 into master 2021-03-08 20:15:23 +01:00
Showing only changes of commit 09d5db287d - Show all commits

View file

@ -2988,10 +2988,11 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
} else { } else {
try { try {
LbryUri uri = LbryUri.parse(url); LbryUri uri = LbryUri.parse(url);
String checkedURL = url.startsWith(LbryUri.PROTO_DEFAULT) ? url : uri.toString();
if (uri.isChannel()) { if (uri.isChannel()) {
openChannelUrl(url.startsWith(LbryUri.PROTO_DEFAULT) ? url : uri.toString()); openChannelUrl(checkedURL);
} else { } else {
openFileUrl(url.startsWith(LbryUri.PROTO_DEFAULT) ? url : uri.toString()); openFileUrl(checkedURL);
} }
} catch (LbryUriException ex) { } catch (LbryUriException ex) {
// pass // pass