The terminal app was using the preferences framework incorrectly: it was
trying to keep its own authoritative copies of the preferences, instead
of relying in the preference framework to store the preferences. This
lead to some race conditions, and made terminal's preferences not work
correctly in Donut or Eclair.
Terminal now uses preferences in a more straightforward way.
As long as I was editing terminal, I made two additional changes:
Term now honors the display density. This makes the text more readable on
high-density devices.
An I put in some error checks for empty shell and first-command strings.
Fixes bug 2177356 Term program on Sholes: preferences doesn't work
Previously the enter key only worked after the trackball had been
clicked at least once. Fixed by calling setFocibleInTouchMode.
Fix bug where control keys didn't work with the soft keyboard.
Fix some warnings reported by Eclipse IDE. (Missing @Overrides, needless
imports, unused variables.)
Explain how it's different than ProcessBuilder
Explain that you have to call close when you're done with the pty's file
descriptor.
Note in the doc comment that the implementation relies on a private
FileDescriptor API.
Also remove an unused method.
Automated import of CL 144152
+ Makes the "Enter" key work again.
+ Makes the "Delete" key delete just one character each time you press it
instead of two.
Original author: jackpal
Merged from: //branches/cupcake/...
Automated import of CL 143272
+ Makes the "Enter" key work again.
+ Makes the "Delete" key delete just one character each time you press it
instead of two.
Original author: jackpal
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...
Automated import of CL 143400