Skip to content

Remove duplicate LAUNCHER declaration #270

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 9, 2025
Merged

Remove duplicate LAUNCHER declaration #270

merged 3 commits into from
Mar 9, 2025

Conversation

wosys
Copy link
Contributor

@wosys wosys commented Feb 22, 2025

There's no need to declare in samples' manifest.
Otherwise, it will create more icons in launcher.

Copy link

google-cla bot commented Feb 22, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@wosys
Copy link
Contributor Author

wosys commented Feb 25, 2025

Hi @tjohns @bentrengrove @javadude @tnorbye ,

Could you please help me review this PR.
I see #275 , maybe it will refactor the architecture.
Then this PR may not needed then?

@javadude
Copy link
Contributor

Good catch; thanks! This will simplify the user experience.

However, the entire <intent-filter> should be removed for these, not just the <category>. For example

    <activity
        android:name=".CallNotificationSample"
        android:launchMode="singleTop"
        android:exported="true">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

should become

    <activity
        android:name=".CallNotificationSample"
        android:launchMode="singleTop"
        android:exported="true"/>

There's no need to declare in samples' manifest.
Otherwise, it will create more icons in launcher.
@javadude
Copy link
Contributor

javadude commented Feb 26, 2025

I'm updating the build.yaml in PR #277 to move to the required upload-artifact@v4. Once merged, you'll need to merge in the change for this build to pass, then we can merge this PR.

@javadude
Copy link
Contributor

The build update was merged. Please merge main into your branch

@javadude javadude self-requested a review March 9, 2025 02:28
Copy link
Contributor

@javadude javadude left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@javadude javadude merged commit eba641b into android:main Mar 9, 2025
3 checks passed
@yrezgui
Copy link
Contributor

yrezgui commented Mar 21, 2025

/gemini summarize

Copy link

Warning

Gemini encountered an error creating the summary. You can try again by commenting /gemini summary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants