Skip to content

Commit

Permalink
The demo app now works in multi-window mode
Browse files Browse the repository at this point in the history
Also change the usage description in README.md.

Change-Id: I2d97e73291bbf8159aabbed419dd47f07a558d81
  • Loading branch information
yaraki committed Apr 11, 2017
1 parent cd7405c commit e8ae1ec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Requires API Level 9. The library uses Camera 1 API on API Level 9-20 and Camera
| 9-13 | Camera1 | SurfaceView |
| 14-20 | Camera1 | TextureView |
| 21-23 | Camera2 | TextureView |
| 24 | Camera2 | SurfaceView |
| 24+ | Camera2 | SurfaceView |

## Features

Expand All @@ -40,15 +40,15 @@ Requires API Level 9. The library uses Camera 1 API on API Level 9-20 and Camera

```java
@Override
protected void onResume() {
super.onResume();
protected void onStart() {
super.onStart();
mCameraView.start();
}

@Override
protected void onPause() {
protected void onStop() {
mCameraView.stop();
super.onPause();
super.onStop();
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ protected void onCreate(Bundle savedInstanceState) {
}

@Override
protected void onResume() {
super.onResume();
protected void onStart() {
super.onStart();
if (ContextCompat.checkSelfPermission(this, Manifest.permission.CAMERA)
== PackageManager.PERMISSION_GRANTED) {
mCameraView.start();
Expand All @@ -150,9 +150,9 @@ protected void onResume() {
}

@Override
protected void onPause() {
protected void onStop() {
mCameraView.stop();
super.onPause();
super.onStop();
}

@Override
Expand Down

0 comments on commit e8ae1ec

Please sign in to comment.