Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd1b0a4c authored by Daniel Sandler's avatar Daniel Sandler Committed by Android (Google) Code Review
Browse files

Merge "Add the current platform easter egg to the picker"

parents be84d93c 787d064d
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ import android.app.Activity;
import android.app.ActivityView;
import android.content.Intent;
import android.os.Bundle;
import android.os.Parcelable;
import android.widget.Button;

public class ActivityViewActivity extends Activity {
@@ -41,6 +42,10 @@ public class ActivityViewActivity extends Activity {
            final Intent intent = Intent.makeMainActivity(null);
            final Intent chooser = Intent.createChooser(intent,
                    "Pick an app to launch in ActivityView");
            chooser.putExtra(Intent.EXTRA_INITIAL_INTENTS, new Parcelable[] {
                    new Intent(Intent.ACTION_MAIN)
                            .addCategory("com.android.internal.category.PLATLOGO")
            });
            if (intent.resolveActivity(getPackageManager()) != null) {
                chooser.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK
                        | Intent.FLAG_ACTIVITY_MULTIPLE_TASK);