Moved Remote Debug from Advanced to Dashboard for faster access.

This commit is contained in:
Gunther Brunner
2014-08-07 14:55:40 +09:00
parent ad29c048b3
commit 5bad2a35d5
10 changed files with 24 additions and 18 deletions

View File

@@ -0,0 +1,17 @@
module.exports = function RemoteDebugCtrl($scope, $timeout) {
function startRemoteConnect() {
$scope.control.startRemoteConnect().then(function (result) {
var url = result.lastData
$scope.$apply(function () {
$scope.debugCommand = 'adb connect ' + url
})
})
}
// TODO: Remove timeout and fix control initialization
if ($scope.control) {
startRemoteConnect()
} else {
$timeout(startRemoteConnect, 200)
}
}