Skip to content

Commit

Permalink
Revert "The demo app now works in multi-window mode"
Browse files Browse the repository at this point in the history
This reverts commit e8ae1ec.

Reason for revert: <INSERT REASONING HERE>

Change-Id: I168629722af041d95cdd65bb603e949f17cea1f7
  • Loading branch information
yaraki committed Apr 11, 2017
1 parent e8ae1ec commit 0af6ef4
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 onStart() {
super.onStart();
protected void onResume() {
super.onResume();
mCameraView.start();
}

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

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 onStart() {
super.onStart();
protected void onResume() {
super.onResume();
if (ContextCompat.checkSelfPermission(this, Manifest.permission.CAMERA)
== PackageManager.PERMISSION_GRANTED) {
mCameraView.start();
Expand All @@ -150,9 +150,9 @@ protected void onStart() {
}

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

@Override
Expand Down

0 comments on commit 0af6ef4

Please sign in to comment.