Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-72933

TextField context menu is displayed incorrectly in some locales on Android

    XMLWordPrintable

Details

    • Android
    • 341c9106881810962f253c1502d2c4f6da90e149 (qt/qtbase/5.12)

    Description

      The new context menu implementation on Android introduced in 5.12 is definitely a big step forward, but there are some glitches. When system locale is set to Russian (Ukraine) i get this after selecting a word with a double tap or a long press:

      Or this:

      On both screenshots above the context menu has "Cut", "Copy" and "Paste" options. If i do not select anything so that only "Paste" option is present, then it looks ok:

      If i switch the phone to English (US) locale, the context menu looks normal in both cases and i additionally get a "Select all" option. Note that the particular screen of our app where these screenshots was made is not translated, so do not pay attention on that the UI is in English.

      For reference, here is how the Android's native context menu looks like in Russian locale (in Google Keep):

      Attachments

        1. screenshot-bad-1.png
          screenshot-bad-1.png
          152 kB
        2. screenshot-bad-2.png
          screenshot-bad-2.png
          152 kB
        3. screenshot-bad-3.png
          screenshot-bad-3.png
          127 kB
        4. screenshot-ok.png
          screenshot-ok.png
          179 kB
        5. screenshot-system.png
          screenshot-system.png
          110 kB
        6. screenshot-with-patch.png
          screenshot-with-patch.png
          103 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            srutledg Shawn Rutledge
            vovams Vova Mshanetskiy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes