From 59b0dab54cb5015f0daa295ca7e5e9a18af3ebdb Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 19 Jul 2016 18:17:57 +0200 Subject: [PATCH] lets force portrait at the main screen, closes #6 --- app/src/main/AndroidManifest.xml | 1 + .../simplemobiletools/flashlight/activities/MainActivity.java | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index c6c0496..a93106a 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -18,6 +18,7 @@ android:theme="@style/AppTheme"> diff --git a/app/src/main/java/com/simplemobiletools/flashlight/activities/MainActivity.java b/app/src/main/java/com/simplemobiletools/flashlight/activities/MainActivity.java index a957472..d4cd82f 100644 --- a/app/src/main/java/com/simplemobiletools/flashlight/activities/MainActivity.java +++ b/app/src/main/java/com/simplemobiletools/flashlight/activities/MainActivity.java @@ -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);