mirror of
https://github.com/opencv/opencv.git
synced 2025-01-13 00:01:27 +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");
|
System.loadLibrary("native_activity");
|
||||||
Intent intent = new Intent(CvNativeActivity.this, android.app.NativeActivity.class);
|
Intent intent = new Intent(CvNativeActivity.this, android.app.NativeActivity.class);
|
||||||
CvNativeActivity.this.startActivity(intent);
|
CvNativeActivity.this.startActivity(intent);
|
||||||
|
CvNativeActivity.this.finish();
|
||||||
} break;
|
} break;
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
@ -34,7 +35,7 @@ public class CvNativeActivity extends Activity {
|
|||||||
Log.i(TAG, "Instantiated new " + this.getClass());
|
Log.i(TAG, "Instantiated new " + this.getClass());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onResume()
|
public void onResume()
|
||||||
{
|
{
|
||||||
super.onResume();
|
super.onResume();
|
||||||
|
Loading…
Reference in New Issue
Block a user