Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8254605

repaint on Android broken

XMLWordPrintable

      The fix for https://bugs.openjdk.java.net/browse/JDK-8241840 broke the repaint-from-native on Android.
      On Android, the native layer may request a repaint (e.g. based on lifecycle events), which is handled by the MonocleWindowManager :
          static void repaintFromNative () {
              Platform.runLater(new Runnable () {

                  @Override
                  public void run() {
                      Screen.notifySettingsChanged();
                      instance.getFocusedWindow().setFullScreen(true);
                      instance.repaintAll();
                      Toolkit.getToolkit().requestNextPulse();
                  }
              });
          }

      This is now failing since instance.getFocusedWindow() returns null for invisible windows (which is the case when the app is initially rendered)
      See https://github.com/gluonhq/substrate/issues/810

            jvos Johan Vos
            jvos Johan Vos
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: