Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-11440

Android Manifest editor heavily reformats the AndroidManifest.xml

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 3.0.1
    • Android Support
    • None

      When I use the wizard to create an AndroidManifest.xml, and immediately add it to my source repository, I will get a huge diff, when touching the file with the Android Manifest editor.

      By the Wizard:

          <application android:name="org.qtproject.qt5.android.bindings.QtApplication" android:label="@string/app_name">
              <activity android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|locale|fontScale|keyboard|keyboardHidden|navigation"
                        android:name="org.qtproject.qt5.android.bindings.QtActivity"
                        android:label="@string/app_name"
                        android:screenOrientation="unspecified">
      

      After using the editor:

          <application android:label="@string/app_name" android:name="org.qtproject.qt5.android.bindings.QtApplication">
              <activity android:label="@string/app_name" android:screenOrientation="unspecified" android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|locale|fontScale|keyboard|keyboardHidden|navigation" android:name="org.qtproject.qt5.android.bindings.QtActivity">
      

      In order to minimize this, I would suggest doing the following:

      • Let the editor write out the attributes inside a tag in alphabetical order
      • Recreate the wizard template file from a fresh output of the editor

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            dt Daniel Teske
            portale Alessandro Portale
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes