mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-09 23:41:08 +01:00
Add onBackPressed method to do not generate crash (#29)
This commit is contained in:
parent
9658a3013f
commit
ef532393e4
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