Android: Fix bug in terminal app that caused it to spin using much CPU and battery. This problem was introduced in version 4.20130601.
This commit is contained in:
parent
d7aa28e00c
commit
9e8521910d
3 changed files with 6 additions and 1 deletions
|
@ -501,8 +501,8 @@ index 8a3a4ac..824025d 100644
|
|||
+
|
||||
+ /* Reading from the fifo blocks until a url is written
|
||||
+ * to it. */
|
||||
+ BufferedReader buf = new BufferedReader(new FileReader(webAppFifo));
|
||||
+ while (true) {
|
||||
+ BufferedReader buf = new BufferedReader(new FileReader(webAppFifo));
|
||||
+ String s = buf.readLine();
|
||||
+ try {
|
||||
+ Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(s));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue