OSDN Git Service

Shell console: fix bug in shell output stream
authorRoman Birg <roman@cyngn.com>
Tue, 23 Jun 2015 14:06:33 +0000 (07:06 -0700)
committerRoman Birg <roman@cyngn.com>
Tue, 23 Jun 2015 14:06:33 +0000 (07:06 -0700)
commit22b9eab32c066fd479ac1022d8dc51d1492f2ad7
tree22b8d07494c1a7948287ce8f4058eea4d224bd42
parent1b15dff63adfb6c541a8b0f5f7a4df1c7fc07b1d
Shell console: fix bug in shell output stream

The command is finished and the partial result may also have the command
exit code. When the partial stream does have the exit code, we were
writing *only* the contents of the exit code, but we need to write
everything *until* the exit code, keeping the contents intact.

Change-Id: I5e7af1125270c394f42fe7661cbefdd98c6a6052
Signed-off-by: Roman Birg <roman@cyngn.com>
src/com/cyanogenmod/filemanager/console/shell/ShellConsole.java