lets force portrait at the main screen, closes #6

This commit is contained in:
tibbi 2016-07-19 18:17:57 +02:00
parent 0ffe46cd03
commit 59b0dab54c
2 changed files with 2 additions and 2 deletions

View File

@ -18,6 +18,7 @@
android:theme="@style/AppTheme">
<activity
android:name=".activities.MainActivity"
android:screenOrientation="portrait"
android:theme="@style/BlackSplashScreen">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>

View File

@ -47,8 +47,7 @@ public class MainActivity extends AppCompatActivity {
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.about:
final Intent intent = new Intent(getApplicationContext(), AboutActivity.class);
startActivity(intent);
startActivity(new Intent(getApplicationContext(), AboutActivity.class));
return true;
default:
return super.onOptionsItemSelected(item);