cvzi / ScreenshotTile

📲 Screenshot Tile for Android without Root
https://f-droid.org/packages/com.github.cvzi.screenshottile/
GNU General Public License v3.0
236 stars 28 forks source link

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

Open Cwpute opened 8 months ago

Cwpute commented 8 months ago

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 commented 7 months ago

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