forked from len0rd/rockbox
Add a few forgotten files, Fix potential startup problem. Fix absolute touchscreen mode.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27693 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f0611f8781
commit
04dc00b7ca
6 changed files with 188 additions and 29 deletions
|
@ -53,24 +53,21 @@ public class RockboxActivity extends Activity {
|
|||
new Thread(new Runnable()
|
||||
{
|
||||
public void run() {
|
||||
while (RockboxService.fb == null)
|
||||
{
|
||||
try {
|
||||
Thread.sleep(250);
|
||||
} catch (InterruptedException e) {
|
||||
} catch (Exception e) {
|
||||
LOG(e.toString());
|
||||
try {
|
||||
while (RockboxService.fb == null)
|
||||
Thread.sleep(250);
|
||||
} catch (InterruptedException e) {
|
||||
} catch (Exception e) {
|
||||
LOG(e.toString());
|
||||
}
|
||||
/* drawing needs to happen in ui thread */
|
||||
runOnUiThread(new Runnable()
|
||||
{ @Override
|
||||
public void run() {
|
||||
setContentView(RockboxService.fb);
|
||||
RockboxService.fb.invalidate();
|
||||
}
|
||||
/* drawing needs to happen in ui thread */
|
||||
runOnUiThread(new Runnable()
|
||||
{ @Override
|
||||
public void run() {
|
||||
setContentView(RockboxService.fb);
|
||||
RockboxService.fb.invalidate();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
}).start();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue