-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Products] Use Authenticated WebView for previewing products #13494
Changes from all commits
7162a64
0272b08
f29199c
dc22767
90695d3
fb7306e
0758f76
2ee38b4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -486,44 +486,6 @@ | |
android:label="EditShippingLabelPaymentFragment" | ||
tools:layout="@layout/fragment_edit_shipping_label_payment"> | ||
</fragment> | ||
<action | ||
android:id="@+id/action_global_AuthenticatedWebViewFragment" | ||
app:destination="@id/AuthenticatedWebViewFragment" /> | ||
Comment on lines
-489
to
-491
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because the multi-pane setup, we previously duplicated the destination in this nested navgraph, this is because when the app is using two panes, the when calling With the new extension There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice! |
||
<fragment | ||
android:id="@+id/AuthenticatedWebViewFragment" | ||
android:name="com.woocommerce.android.ui.common.webview.AuthenticatedWebViewFragment" | ||
android:label="AuthenticatedWebViewFragment" | ||
tools:layout="@layout/fragment_wpcom_webview"> | ||
<argument | ||
android:name="urlToLoad" | ||
app:argType="string" /> | ||
<argument | ||
android:name="title" | ||
android:defaultValue="@null" | ||
app:argType="string" | ||
app:nullable="true" /> | ||
<argument | ||
android:name="urlsToTriggerExit" | ||
android:defaultValue="@null" | ||
app:argType="string[]" | ||
app:nullable="true" /> | ||
<argument | ||
android:name="captureBackButton" | ||
android:defaultValue="true" | ||
app:argType="boolean" /> | ||
<argument | ||
android:name="displayMode" | ||
android:defaultValue="REGULAR" | ||
app:argType="com.woocommerce.android.ui.common.webview.AuthenticatedWebViewViewModel$DisplayMode" /> | ||
<argument | ||
android:name="urlComparisonMode" | ||
android:defaultValue="PARTIAL" | ||
app:argType="com.woocommerce.android.ui.common.webview.AuthenticatedWebViewViewModel$UrlComparisonMode" /> | ||
<argument | ||
android:name="clearCache" | ||
android:defaultValue="false" | ||
app:argType="boolean" /> | ||
</fragment> | ||
<fragment | ||
android:id="@+id/shippingCarrierRatesFragment" | ||
android:name="com.woocommerce.android.ui.orders.shippinglabels.creation.ShippingCarrierRatesFragment" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to set the navHostId for the result handler too to make sure we are using the correct NavController.