Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

PaymentActivity layout issue in API 24 Nougat #357

Closed
CarlosGame opened this issue Oct 5, 2016 · 2 comments
Closed

PaymentActivity layout issue in API 24 Nougat #357

CarlosGame opened this issue Oct 5, 2016 · 2 comments

Comments

@CarlosGame
Copy link

CarlosGame commented Oct 5, 2016

Required Information

  • Mode (Mock/Sandbox/Live): Both Sandbox and Live
  • PayPal Android SDK Version: 2.15.0, 2.14.6, 2.13.1
  • Android Version and Device: Tested in Sony Xperia Z5 Compact API 23, Nexus 6P API 24, and Nexus 5 emulator API 23 and 24
  • PayPal-Debug-ID(s) (from any logs): a4ffc53796c16

Issue Description

In order to accept transactions from our costumers, we proceed as follows:

    config = new PayPalConfiguration()
            .environment(getString(R.string.paypal_environment))
            .acceptCreditCards(creditCardActive)
            .clientId(getString(R.string.paypal_client_id));

    payPalPayment = new PayPalPayment(new BigDecimal(money), "EUR", title,
            PayPalPayment.PAYMENT_INTENT_AUTHORIZE);
    payPalPayment = payPalPayment.invoiceNumber(invoiceNumber);

    Intent intent = new Intent(getActivity(), PaymentActivity.class);
    intent.putExtra(PayPalService.EXTRA_PAYPAL_CONFIGURATION, config);
    intent.putExtra(PaymentActivity.EXTRA_PAYMENT, payPalPayment);
    startActivityForResult(intent, 0);

The whole process works flawlessly. However, we've noticed a weird layout bug in Nougat. For some reason, the price label doesn't increase its size to fit its contents. In the sample images below, the euro symbol is almost gone. Of course, with bigger figures users wouldn't see the appropriate number.

We know it isn't an alarming bug, but we wanted to report it anyway. It is annoying as users may not be confident to accept the transaction, and maybe this same behavior might be occurring and obscuring something important in another layout.

Thank you! Regards.

_Nexus 5 emulator, API 24:_

screenshot_1475676404
screenshot_1475676776

_Nexus 5 emulator, API 23:_

screenshot_1475676409
screenshot_1475676804

@braebot
Copy link
Contributor

braebot commented Oct 5, 2016

Thanks for reporting this! Yes, there does seem to be a bug on API 24. We'll investigate, and will report back on this issue with a fix.

@jaypatel512
Copy link
Contributor

Hello All,

The fix for this has been released in latest version. Please update and let us know if you find any other issues with the UI.

Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants