Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
Qt Creator 4.12.0
Description
When adding an extra activity declaration to AndroidManifest.xml then changing anything in the manifest will cause all activities to have the same app name. This is because it will replace all instances of android.app.lib_name to match the run entry even if they are already different.
To reproduce add the following to the AndroidManifest.xml:
<activity android:name="com.mycompany.myapp.TestActivity" android:label="MyTest" android:exported="true" android:theme="@style/Theme.AppCompat"> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> <meta-data android:name="android.app.lib_name" android:value="test"/> </activity>
before or after the existing activity and then switch to the General view and change the Run entry back to the other application. Switching back to the XML Source will show that it has changed both entries then rather than just the one.