Skip to content

Commit c5489d2

Browse files
And split screen launching support to App Launcher
Signed-off-by: Keith Conger <keith.conger@blackboxembedded.com>
1 parent 0f1e43e commit c5489d2

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

app/src/main/java/com/blackboxembedded/WunderLINQ/TaskList/Activities/AppListActivity.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
*/
1818
package com.blackboxembedded.WunderLINQ.TaskList.Activities;
1919

20+
import static android.content.Intent.FLAG_ACTIVITY_LAUNCH_ADJACENT;
21+
2022
import androidx.appcompat.app.ActionBar;
2123
import androidx.appcompat.app.AppCompatActivity;
2224

@@ -206,6 +208,11 @@ public void onItemClick(AdapterView<?> parent, final View view,
206208
SoundManager.playSound(AppListActivity.this, R.raw.enter);
207209
lastPosition = position;
208210
Intent intent = packageManager.getLaunchIntentForPackage(apps.get(position).name.toString());
211+
if (AppListActivity.this.isInMultiWindowMode()) {
212+
if(androidx.preference.PreferenceManager.getDefaultSharedPreferences(AppListActivity.this).getString("prefAppLaunchOptions", "1").equals("0")){
213+
intent.setFlags(FLAG_ACTIVITY_LAUNCH_ADJACENT);
214+
}
215+
}
209216
AppListActivity.this.startActivity(intent);
210217
}
211218
});

0 commit comments

Comments
 (0)