Implement pop up add account menu (for Google Account).

This commit is contained in:
Valverde Antonio
2014-07-02 18:37:39 +09:00
parent 9125816d07
commit d294906a65
8 changed files with 64 additions and 1 deletions

View File

@@ -505,6 +505,21 @@ module.exports = syrup.serial()
})
}
plugin.addAccountMenu = function() {
return runServiceCommand(
apk.wire.MessageType.DO_ADD_ACCOUNT_MENU
, new apk.wire.DoAddAccountMenuRequest()
)
.timeout(15000)
.then(function(data) {
var response = apk.wire.DoAddAccountMenuResponse.decode(data)
if (response.success) {
return true
}
throw new Error('Unable to show add account menu')
})
}
plugin.setRingerMode = function(mode) {
return runServiceCommand(
apk.wire.MessageType.SET_RINGER_MODE