Skip to content
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

Hide ScreenshotTile editing tools from Edit With menu in other apps #463

Open
Cwpute opened this issue Nov 5, 2023 · 1 comment
Open
Assignees
Labels
enhancement New feature or request

Comments

@Cwpute
Copy link

Cwpute commented Nov 5, 2023

When i'm using other apps that allow editing pictures through another app, the ScreenshotTiles tools are always listed as available…
But they are the same exact tools as several other editing apps which they share their library with, such as PhotoEditor (https://github.com/burhanrashid52/PhotoEditor). So having the ScreenshotTiles tools show up along them is a bit redundant…

I'd like that the in-app tools ScreenshotTile uses stay in-app and don't appear when searching for editing tools.

@cvzi cvzi self-assigned this Nov 19, 2023
@cvzi cvzi added the enhancement New feature or request label Nov 19, 2023
@cvzi
Copy link
Owner

cvzi commented Dec 9, 2023

Notes on how this could be implemented:

Create an <activity-alias> for the photo editor activity.
Move the public <intent-filter> from the activity to the <activity-alias>.
Now the <activity-alias> could be disabled with PackageManager's setComponentEnabledSetting but the activity would still be enabled and could still be started internally from the app.
The activity would need to receive the screenshot in a non-standard way i.e. not Intent.ACTION_EDIT

Same goes for the other "Post*" activities that have <intent-filter>s

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

No branches or pull requests

2 participants