mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-04 17:27:24 +01:00
rename ACTION_INSTALL_PEBBLEAPP to ACTION_INSTALL
This commit is contained in:
parent
5c26b2281f
commit
268e658e6f
@ -55,8 +55,8 @@ public class BluetoothCommunicationService extends Service {
|
|||||||
= "nodomain.freeyourgadget.gadgetbridge.bluetoothcommunicationservice.action.startapp";
|
= "nodomain.freeyourgadget.gadgetbridge.bluetoothcommunicationservice.action.startapp";
|
||||||
public static final String ACTION_DELETEAPP
|
public static final String ACTION_DELETEAPP
|
||||||
= "nodomain.freeyourgadget.gadgetbridge.bluetoothcommunicationservice.action.deleteapp";
|
= "nodomain.freeyourgadget.gadgetbridge.bluetoothcommunicationservice.action.deleteapp";
|
||||||
public static final String ACTION_INSTALL_PEBBLEAPP
|
public static final String ACTION_INSTALL
|
||||||
= "nodomain.freeyourgadget.gadgetbridge.bluetoothcommunicationservice.action.install_pebbbleapp";
|
= "nodomain.freeyourgadget.gadgetbridge.bluetoothcommunicationservice.action.install";
|
||||||
public static final String ACTION_REBOOT = "nodomain.freeyourgadget.gadgetbridge.bluetoothcommunicationservice.action.reboot";
|
public static final String ACTION_REBOOT = "nodomain.freeyourgadget.gadgetbridge.bluetoothcommunicationservice.action.reboot";
|
||||||
public static final String ACTION_FETCH_ACTIVITY_DATA = "nodomain.freeyourgadget.gadgetbridge.bluetoothcommunicationservice.action.fetch_activity_data";
|
public static final String ACTION_FETCH_ACTIVITY_DATA = "nodomain.freeyourgadget.gadgetbridge.bluetoothcommunicationservice.action.fetch_activity_data";
|
||||||
public static final String ACTION_DISCONNECT = "nodomain.freeyourgadget.gadgetbridge.bluetoothcommunicationservice.action.disconnect";
|
public static final String ACTION_DISCONNECT = "nodomain.freeyourgadget.gadgetbridge.bluetoothcommunicationservice.action.disconnect";
|
||||||
@ -258,10 +258,10 @@ public class BluetoothCommunicationService extends Service {
|
|||||||
uuid = UUID.fromString(intent.getStringExtra("app_uuid"));
|
uuid = UUID.fromString(intent.getStringExtra("app_uuid"));
|
||||||
mDeviceSupport.onAppDelete(uuid);
|
mDeviceSupport.onAppDelete(uuid);
|
||||||
break;
|
break;
|
||||||
case ACTION_INSTALL_PEBBLEAPP:
|
case ACTION_INSTALL:
|
||||||
String uriString = intent.getStringExtra("app_uri");
|
String uriString = intent.getStringExtra("uri");
|
||||||
if (uriString != null) {
|
if (uriString != null) {
|
||||||
LOG.info("will try to install app");
|
LOG.info("will try to install app/fw");
|
||||||
mDeviceSupport.onInstallApp(Uri.parse(uriString));
|
mDeviceSupport.onInstallApp(Uri.parse(uriString));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -84,8 +84,8 @@ public class PebbleAppInstallerActivity extends Activity {
|
|||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
Intent startIntent = new Intent(PebbleAppInstallerActivity.this, BluetoothCommunicationService.class);
|
Intent startIntent = new Intent(PebbleAppInstallerActivity.this, BluetoothCommunicationService.class);
|
||||||
startIntent.setAction(BluetoothCommunicationService.ACTION_INSTALL_PEBBLEAPP);
|
startIntent.setAction(BluetoothCommunicationService.ACTION_INSTALL);
|
||||||
startIntent.putExtra("app_uri", uri.toString());
|
startIntent.putExtra("uri", uri.toString());
|
||||||
startService(startIntent);
|
startService(startIntent);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user