lets force portrait at the main screen, closes #6
This commit is contained in:
parent
0ffe46cd03
commit
59b0dab54c
|
@ -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"/>
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue