title: Changing Activity ordering in Merged Manifest
body: <p>I have a manifest defined for a build variant package (debug) which includes a Launcher Activity, and then in my main manifest i have another Launcher defined. Now, in the Merged Manifest, because build variant is the highest priority, the activity from that manifest is first, which is causing issues when launching the app automatically, as it doesn't open the correct screen.</p>
  <p>Is there any way to change the ordering of the activities?</p>
  <p>Debug variant Manifest:</p>
  <pre><code>&lt;activity
              android:name=&quot;FlagsActivity&quot;
              android:clearTaskOnLaunch=&quot;true&quot;
              android:excludeFromRecents=&quot;true&quot;
              android:label=&quot;Debug Opts&quot;
              android:screenOrientation=&quot;portrait&quot;
              android:taskAffinity=&quot;.Debug&quot;
              android:theme=&quot;@style/AppTheme&quot;&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name=&quot;android.intent.action.MAIN&quot; /&gt;
  
                  &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot; /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  </code></pre>
  <p>Main Manifest:</p>
  <pre><code> &lt;activity
              android:name=&quot;.ui.launcher.LauncherActivity&quot;
              android:configChanges=&quot;keyboardHidden|orientation|screenSize&quot;
              android:launchMode=&quot;singleTask&quot;&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name=&quot;android.intent.action.MAIN&quot; /&gt;
                  &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot; /&gt;
                  &lt;category android:name=&quot;android.intent.category.HOME&quot; /&gt;
                  &lt;category android:name=&quot;android.intent.category.DEFAULT&quot; /&gt;
              &lt;/intent-filter&gt;
      [...]
  
  </code></pre>
  <p>Merged result:</p>
  <pre><code> &lt;activity
              android:name=&quot;FlagsActivity&quot;
              android:clearTaskOnLaunch=&quot;true&quot;
              android:excludeFromRecents=&quot;true&quot;
              android:label=&quot;Debug Opts&quot;
              android:screenOrientation=&quot;portrait&quot;
              android:taskAffinity=&quot;.Debug&quot;
              android:theme=&quot;@style/AppTheme&quot; &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name=&quot;android.intent.action.MAIN&quot; /&gt;
  
                  &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot; /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
          &lt;activity
              android:name=&quot;.LauncherActivity&quot;
              android:configChanges=&quot;keyboardHidden|orientation|screenSize&quot;
              android:launchMode=&quot;singleTask&quot; &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name=&quot;android.intent.action.MAIN&quot; /&gt;
  
                  &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot; /&gt;
                  &lt;category android:name=&quot;android.intent.category.HOME&quot; /&gt;
                  &lt;category android:name=&quot;android.intent.category.DEFAULT&quot; /&gt;
              &lt;/intent-filter&gt;
      [...]
  
  </code></pre>
  <p>Thanks in advance!</p>