mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-14 05:52:52 +00:00
Make ScannerActivity fullscreen and locked in portrait mode
This commit is contained in:
parent
93eeef142d
commit
2fce0f4dcc
3 changed files with 14 additions and 1 deletions
|
@ -23,6 +23,7 @@ public class ScannerActivity extends AegisActivity implements ZXingScannerView.R
|
|||
@Override
|
||||
protected void onCreate(Bundle state) {
|
||||
super.onCreate(state);
|
||||
setTitle("Scan a QR code");
|
||||
|
||||
_scannerView = new ZXingScannerView(this) {
|
||||
@Override
|
||||
|
@ -30,7 +31,10 @@ public class ScannerActivity extends AegisActivity implements ZXingScannerView.R
|
|||
return new SquareFinderView(context);
|
||||
}
|
||||
};
|
||||
_scannerView.setResultHandler(this);
|
||||
_scannerView.setFormats(Collections.singletonList(BarcodeFormat.QR_CODE));
|
||||
_scannerView.startCamera();
|
||||
|
||||
setContentView(_scannerView);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue