Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gfursin committed Aug 4, 2018
1 parent 4a9246d commit e60888b
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,14 @@ private RecognitionScenario getSelectedRecognitionScenario() {

@Override
protected void onCreate(Bundle savedInstanceState) {
if (Build.VERSION.SDK_INT>Build.VERSION_CODES.LOLLIPOP_MR1) {
String[] perms = { Manifest.permission.READ_EXTERNAL_STORAGE,
Manifest.permission.WRITE_EXTERNAL_STORAGE};
requestPermissions(perms, 200);
}

super.onCreate(savedInstanceState);

Thread.setDefaultUncaughtExceptionHandler(new ExceptionHandler(this));
setContentView(R.layout.activity_main);
setTaskBarColored(this);
Expand All @@ -246,12 +253,6 @@ public void onClick(View v) {
}
});

if (Build.VERSION.SDK_INT>Build.VERSION_CODES.LOLLIPOP_MR1) {
String[] perms = { Manifest.permission.READ_EXTERNAL_STORAGE,
Manifest.permission.WRITE_EXTERNAL_STORAGE};
requestPermissions(perms, 200);
}

initConsole();

startStopCam = (Button) findViewById(R.id.btn_capture);
Expand Down

0 comments on commit e60888b

Please sign in to comment.