mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-21 20:19:23 +01:00
Add onBackPressed method to do not generate crash (#29)
This commit is contained in:
parent
51c0bad937
commit
004c28737b
1 changed files with 5 additions and 0 deletions
|
@ -88,6 +88,11 @@ public class CustomScannerActivity extends Activity implements DecoratedBarcodeV
|
|||
capture.onDestroy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBackPressed(){
|
||||
onCancel(this.getCurrentFocus());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onSaveInstanceState(Bundle outState) {
|
||||
super.onSaveInstanceState(outState);
|
||||
|
|
Loading…
Reference in a new issue