Skip to content

Commit a77c665

Browse files
author
shushant
committed
Fix ResourceNotFound exception
1 parent 21a2cec commit a77c665

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/org/opendroidphp/app/tasks/CommandTask.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public static CommandTask createForConnect(final Context c, final String execNam
4848
});
4949
CommandTask task = new CommandTask(c, R.string.server_loading, R.string.turning_on_server);
5050
task.addCommand(command);
51+
task.setNotification(R.string.web_server_is_running);
5152
return task;
5253
}
5354

@@ -102,6 +103,7 @@ protected void onProgressUpdate(String... queryRes) {
102103
super.onProgressUpdate(queryRes);
103104
setMessage(queryRes[0]);
104105
if (queryRes[0].equals(COMMAND_EXECUTED)) {
106+
command_executed = (command_executed == 0) ? R.string.command_executed : command_executed;
105107
AppController.toast(getContext(), getContext().getString(command_executed));
106108
}
107109
}

0 commit comments

Comments
 (0)