Skip to content

Commit 59b0dab

Browse files
committed
lets force portrait at the main screen, closes #6
1 parent 0ffe46c commit 59b0dab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
android:theme="@style/AppTheme">
1919
<activity
2020
android:name=".activities.MainActivity"
21+
android:screenOrientation="portrait"
2122
android:theme="@style/BlackSplashScreen">
2223
<intent-filter>
2324
<action android:name="android.intent.action.MAIN"/>

app/src/main/java/com/simplemobiletools/flashlight/activities/MainActivity.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ public boolean onCreateOptionsMenu(Menu menu) {
4747
public boolean onOptionsItemSelected(MenuItem item) {
4848
switch (item.getItemId()) {
4949
case R.id.about:
50-
final Intent intent = new Intent(getApplicationContext(), AboutActivity.class);
51-
startActivity(intent);
50+
startActivity(new Intent(getApplicationContext(), AboutActivity.class));
5251
return true;
5352
default:
5453
return super.onOptionsItemSelected(item);

0 commit comments

Comments
 (0)