android: don't crash if the user presses HOME while the loading screen is showing, this shuld also be made canceleable later

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28530 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2010-11-07 21:10:17 +00:00
parent 8371d78519
commit eab843f2c3

View file

@ -131,21 +131,24 @@ public class RockboxActivity extends Activity
protected void onPause()
{
super.onPause();
rbservice.set_activity(null);
if (rbservice != null)
rbservice.set_activity(null);
}
@Override
protected void onStop()
{
super.onStop();
rbservice.set_activity(null);
if (rbservice != null)
rbservice.set_activity(null);
}
@Override
protected void onDestroy()
{
super.onDestroy();
rbservice.set_activity(null);
if (rbservice != null)
rbservice.set_activity(null);
}
private void LOG(CharSequence text)