Set activity title in manifest instead of code

This commit is contained in:
Alexander Bakker 2017-12-26 22:18:21 +01:00
parent 3970ccf94e
commit 6886a9b0f0
2 changed files with 1 additions and 1 deletions

View file

@ -27,6 +27,7 @@
</activity>
<activity
android:name=".ScannerActivity"
android:label="Scan a QR code"
android:theme="@style/AppTheme.Fullscreen"
android:screenOrientation="portrait"
android:configChanges="keyboardHidden|orientation|screenSize">

View file

@ -23,7 +23,6 @@ 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