User can abort app while it's downloading data
This commit is contained in:
@@ -305,6 +305,8 @@ public class DemoActivity extends Activity {
|
||||
// Overrides Back key to use in our app
|
||||
if( mGLView != null )
|
||||
mGLView.nativeKey( keyCode, 1 );
|
||||
if( keyCode == KeyEvent.KEYCODE_BACK && !downloader.DownloadComplete )
|
||||
onStop();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user