Skip to content

Instantly share code, notes, and snippets.

@t4kemyh4nd
Created August 27, 2021 05:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save t4kemyh4nd/8688569ba93c3d6f454dfe3c6ccf89f8 to your computer and use it in GitHub Desktop.
Save t4kemyh4nd/8688569ba93c3d6f454dfe3c6ccf89f8 to your computer and use it in GitHub Desktop.
public static FragmentInfo parseFragment(Uri uri) {
if (uri == null || !FeatureConstants.SCHEME.equals(uri.getScheme())) {
return null;
}
IDeviceCompat deviceCompat = IApplicationHelper.CC.getInstance().getDeviceCompat();
Uri adapter = DisplayCompact.adapter(uri);
if (adapter == null) {
return null;
}
IAppInstance.CC.getInstance().OnlineServiceHelperCheckOnlineUriAndOpenSwitch(IApplicationHelper.CC.getInstance().getContext(), adapter);
String authority = adapter.getAuthority();
if ("display".equals(authority) || FeatureConstants.AUTHORITY_FOLDER_PICKER.equals(authority)) {
//redacted
} else if (FeatureConstants.AUTHORITY_HUNGAMA_PAYMENT.equals(authority)) {
//redacted
} else if ("webview".equals(authority)) {
FragmentInfo fragmentInfo3 = new FragmentInfo();
fragmentInfo3.mClz = deviceCompat.getFragmentClass(12);
fragmentInfo3.mOneshot = adapter.getBooleanQueryParameter(FeatureConstants.PARAM_MIBACK, false);
fragmentInfo3.mArgs = AnimationDef.SLIDE.toBundle(null);
fragmentInfo3.mUri = adapter;
return fragmentInfo3;
} else if (DisplayUriConstants.HYBRID_AUTHORITIES.contains(authority) || adapter.getBooleanQueryParameter("hybrid", false)) {
//redacted
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment