mirror of
https://github.com/opencv/opencv.git
synced 2025-01-12 15:49:32 +08:00
Application pause/resume fix for Android sample NativeActivity.
(cherry picked from commit 7da3e98dfd
)
This commit is contained in:
parent
f40ffe4763
commit
25159d8e81
@ -21,6 +21,7 @@ public class CvNativeActivity extends Activity {
|
||||
System.loadLibrary("native_activity");
|
||||
Intent intent = new Intent(CvNativeActivity.this, android.app.NativeActivity.class);
|
||||
CvNativeActivity.this.startActivity(intent);
|
||||
CvNativeActivity.this.finish();
|
||||
} break;
|
||||
default:
|
||||
{
|
||||
@ -34,7 +35,7 @@ public class CvNativeActivity extends Activity {
|
||||
Log.i(TAG, "Instantiated new " + this.getClass());
|
||||
}
|
||||
|
||||
@Override
|
||||
@Override
|
||||
public void onResume()
|
||||
{
|
||||
super.onResume();
|
||||
|
Loading…
Reference in New Issue
Block a user