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"> android:theme="@style/AppTheme">
<activity <activity
android:name=".activities.MainActivity" android:name=".activities.MainActivity"
android:screenOrientation="portrait"
android:theme="@style/BlackSplashScreen"> android:theme="@style/BlackSplashScreen">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN"/> <action android:name="android.intent.action.MAIN"/>

View File

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