Use FileInstallerActivity in OpenFwAppInstallerActivity

This commit is contained in:
Daniele Gobbetti 2024-09-01 16:24:33 +02:00 committed by José Rebelo
parent 0c876f2c86
commit 3f10a89594

View File

@ -83,7 +83,7 @@ public class OpenFwAppInstallerActivity extends AbstractGBActivity {
public void onActivityResult(int requestCode, int resultCode, Intent resultData) { public void onActivityResult(int requestCode, int resultCode, Intent resultData) {
super.onActivityResult(requestCode, resultCode, resultData); super.onActivityResult(requestCode, resultCode, resultData);
if (requestCode == READ_REQUEST_CODE && resultCode == Activity.RESULT_OK) { if (requestCode == READ_REQUEST_CODE && resultCode == Activity.RESULT_OK) {
Intent startIntent = new Intent(OpenFwAppInstallerActivity.this, FwAppInstallerActivity.class); Intent startIntent = new Intent(OpenFwAppInstallerActivity.this, FileInstallerActivity.class);
startIntent.putExtra(GBDevice.EXTRA_DEVICE, device); startIntent.putExtra(GBDevice.EXTRA_DEVICE, device);
startIntent.setAction(Intent.ACTION_VIEW); startIntent.setAction(Intent.ACTION_VIEW);
startIntent.setDataAndType(resultData.getData(), null); startIntent.setDataAndType(resultData.getData(), null);