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

Android: Differ between fullscreen and maximized windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.1.0
    • Fix Version/s: 5.2.0 RC1
    • Component/s: GUI: Window management
    • Labels:
      None
    • Platform/s:
      Android
    • Commits:
      59569fd0202c52a16860fba5634e743286a19fd2

      Description

      Currently, we set the flag ShowIsFullscreen in Android, but what we are really doing is maximizing all windows, because the status bar is still visible unless you remove it in the AndroidManifest.

      In Qt terms, the logical interpretation is that:
      show(): Whatever is the platform default
      showMaximized(): Fills the area of the screen which is not used for system UI
      showFullscreen(): Fills the entire screen

      We should follow this on Android as well. This means that instead of "ShowIsFullscreen", we should have "ShowIsMaximized" to ensure that all windows are maximized by default.

      In addition, showFullscreen() should actually hide the system UI elements that we are able to hide, such as the status bar.

      A way to do this which is compatible with our minimum SDK version is:

      getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
      

        Attachments

          Issue Links

          For Gerrit Dashboard: QTBUG-33135
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              esabraha Eskil Abrahamsen Blomfeldt
              Reporter:
              esabraha Eskil Abrahamsen Blomfeldt
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes