Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1590)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestUI.java

Issue 2670853002: [Payments] Animates EditorView in and out (Closed)
Patch Set: format Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestUI.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestUI.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestUI.java
index 3be76de87447105a7fa4aac276b5404e4e0f2786..bf3332b13e346257d10c6eba88ee1e0f311e1e25 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestUI.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestUI.java
@@ -679,7 +679,6 @@ public class PaymentRequestUI implements DialogInterface.OnDismissListener, View
* @param section The shipping options.
*/
public void updateSection(@DataType int whichSection, SectionInformation section) {
- mIsEditingPaymentItem = false;
if (whichSection == TYPE_SHIPPING_ADDRESSES) {
mShippingAddressSectionInformation = section;
mShippingAddressSection.update(section);
@@ -693,8 +692,14 @@ public class PaymentRequestUI implements DialogInterface.OnDismissListener, View
mPaymentMethodSectionInformation = section;
mPaymentMethodSection.update(section);
}
+
+ boolean isFinishingEditItem = mIsEditingPaymentItem;
+ mIsEditingPaymentItem = false;
updateSectionButtons();
updatePayButtonEnabled();
+
+ // Notify ready for input for test if this is finishing editing item.
+ if (isFinishingEditItem) notifyReadyForInput();
}
@Override

Powered by Google App Engine
This is Rietveld 408576698