forked from len0rd/rockbox
Android: greatly simplify Android YesNo and KeyboardInput widgets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28513 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
988bdc1cc4
commit
c31a2f3bbb
7 changed files with 69 additions and 144 deletions
|
@ -145,23 +145,6 @@ public class RockboxActivity extends Activity
|
|||
super.onDestroy();
|
||||
rbservice.set_activity(null);
|
||||
}
|
||||
|
||||
private HostCallback hostcallback = null;
|
||||
public void waitForActivity(Intent i, HostCallback callback)
|
||||
{
|
||||
if (hostcallback != null)
|
||||
{
|
||||
LOG("Something has gone wrong");
|
||||
}
|
||||
hostcallback = callback;
|
||||
startActivityForResult(i, 0);
|
||||
}
|
||||
|
||||
public void onActivityResult(int requestCode, int resultCode, Intent data)
|
||||
{
|
||||
hostcallback.onComplete(resultCode, data);
|
||||
hostcallback = null;
|
||||
}
|
||||
|
||||
private void LOG(CharSequence text)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue