Created
August 27, 2021 05:27
-
-
Save t4kemyh4nd/8688569ba93c3d6f454dfe3c6ccf89f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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