mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-22 04:29:22 +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();
|
capture.onDestroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onBackPressed(){
|
||||||
|
onCancel(this.getCurrentFocus());
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onSaveInstanceState(Bundle outState) {
|
protected void onSaveInstanceState(Bundle outState) {
|
||||||
super.onSaveInstanceState(outState);
|
super.onSaveInstanceState(outState);
|
||||||
|
|
Loading…
Reference in a new issue