mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-09-10 08:16:48 +02:00
Show Gadgetbridge in the "share" system dialog for installing firmwares, apps etc.
This commit is contained in:
parent
440a5e071f
commit
353bd4651b
@ -191,6 +191,15 @@
|
|||||||
<data android:mimeType="application/zip" />
|
<data android:mimeType="application/zip" />
|
||||||
<data android:mimeType="application/x-zip-compressed" />
|
<data android:mimeType="application/x-zip-compressed" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
<!-- to receive files from the "share" intent -->
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="android.intent.action.SEND" />
|
||||||
|
|
||||||
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
|
|
||||||
|
<data android:mimeType="*/*" />
|
||||||
|
|
||||||
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
<service
|
<service
|
||||||
|
@ -152,6 +152,9 @@ public class FwAppInstallerActivity extends GBActivity implements InstallActivit
|
|||||||
});
|
});
|
||||||
|
|
||||||
uri = getIntent().getData();
|
uri = getIntent().getData();
|
||||||
|
if (uri == null) { //for "share" intent
|
||||||
|
uri = getIntent().getParcelableExtra(Intent.EXTRA_STREAM);
|
||||||
|
}
|
||||||
installHandler = findInstallHandlerFor(uri);
|
installHandler = findInstallHandlerFor(uri);
|
||||||
if (installHandler == null) {
|
if (installHandler == null) {
|
||||||
setInfoText(getString(R.string.installer_activity_unable_to_find_handler));
|
setInfoText(getString(R.string.installer_activity_unable_to_find_handler));
|
||||||
|
Loading…
Reference in New Issue
Block a user