start app when about to be configured

This commit is contained in:
Andreas Shimokawa 2016-03-03 14:25:44 +01:00
parent 2a7f9226a0
commit 902ff39c0b
1 changed files with 2 additions and 0 deletions

View File

@ -199,6 +199,8 @@ public class AppManagerActivity extends Activity {
GBApplication.deviceService().onInstallApp(Uri.parse("fake://health")); GBApplication.deviceService().onInstallApp(Uri.parse("fake://health"));
return true; return true;
case R.id.appmanager_app_configure: case R.id.appmanager_app_configure:
GBApplication.deviceService().onAppStart(selectedApp.getUUID(), true);
Intent startIntent = new Intent(getApplicationContext(), ExternalPebbleJSActivity.class); Intent startIntent = new Intent(getApplicationContext(), ExternalPebbleJSActivity.class);
startIntent.putExtra("app_uuid", selectedApp.getUUID()); startIntent.putExtra("app_uuid", selectedApp.getUUID());
startIntent.putExtra(GBDevice.EXTRA_DEVICE, mGBDevice); startIntent.putExtra(GBDevice.EXTRA_DEVICE, mGBDevice);