diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index ea48c1f0..7a5f4ed1 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -69,12 +69,12 @@ + android:parentActivityName=".activities.SettingsActivity"/> + android:parentActivityName=".activities.MainActivity"/> diff --git a/app/src/main/java/com/simplemobiletools/camera/activities/AboutActivity.java b/app/src/main/java/com/simplemobiletools/camera/activities/AboutActivity.java index 78fbe0d2..3a39c854 100644 --- a/app/src/main/java/com/simplemobiletools/camera/activities/AboutActivity.java +++ b/app/src/main/java/com/simplemobiletools/camera/activities/AboutActivity.java @@ -7,8 +7,6 @@ import android.net.Uri; import android.os.Bundle; import android.text.Html; import android.text.method.LinkMovementMethod; -import android.view.Menu; -import android.view.MenuItem; import android.view.View; import android.widget.TextView; @@ -41,24 +39,6 @@ public class AboutActivity extends SimpleActivity { setupRateUs(); } - @Override - public boolean onCreateOptionsMenu(Menu menu) { - getMenuInflater().inflate(R.menu.menu, menu); - return true; - } - - @Override - public boolean onOptionsItemSelected(MenuItem item) { - switch (item.getItemId()) { - case R.id.settings: - final Intent intent = new Intent(getApplicationContext(), SettingsActivity.class); - startActivity(intent); - return true; - default: - return super.onOptionsItemSelected(item); - } - } - private void setupEmail() { final String email = mRes.getString(R.string.email); final String appName = mRes.getString(R.string.app_name); diff --git a/app/src/main/java/com/simplemobiletools/camera/activities/MainActivity.java b/app/src/main/java/com/simplemobiletools/camera/activities/MainActivity.java index 1d84fe32..2bb24bf9 100644 --- a/app/src/main/java/com/simplemobiletools/camera/activities/MainActivity.java +++ b/app/src/main/java/com/simplemobiletools/camera/activities/MainActivity.java @@ -55,7 +55,7 @@ public class MainActivity extends SimpleActivity @BindView(R.id.toggle_photo_video) ImageView mTogglePhotoVideoBtn; @BindView(R.id.shutter) ImageView mShutterBtn; @BindView(R.id.video_rec_curr_timer) TextView mRecCurrTimer; - @BindView(R.id.about) View mAboutBtn; + @BindView(R.id.settings) View mAboutBtn; @BindView(R.id.last_photo_video_preview) ImageView mLastPhotoVideoPreview; private static final int CAMERA_STORAGE_PERMISSION = 1; @@ -303,9 +303,9 @@ public class MainActivity extends SimpleActivity } } - @OnClick(R.id.about) - public void launchAbout() { - final Intent intent = new Intent(getApplicationContext(), AboutActivity.class); + @OnClick(R.id.settings) + public void launchSettings() { + final Intent intent = new Intent(getApplicationContext(), SettingsActivity.class); startActivity(intent); } diff --git a/app/src/main/java/com/simplemobiletools/camera/activities/SettingsActivity.java b/app/src/main/java/com/simplemobiletools/camera/activities/SettingsActivity.java index 3762e7be..4978abf0 100644 --- a/app/src/main/java/com/simplemobiletools/camera/activities/SettingsActivity.java +++ b/app/src/main/java/com/simplemobiletools/camera/activities/SettingsActivity.java @@ -1,9 +1,12 @@ package com.simplemobiletools.camera.activities; +import android.content.Intent; import android.os.Bundle; import android.support.v4.app.TaskStackBuilder; import android.support.v7.widget.AppCompatSpinner; import android.support.v7.widget.SwitchCompat; +import android.view.Menu; +import android.view.MenuItem; import com.simplemobiletools.camera.Config; import com.simplemobiletools.camera.R; @@ -40,6 +43,24 @@ public class SettingsActivity extends SimpleActivity { setupMaxVideoResolution(); } + @Override + public boolean onCreateOptionsMenu(Menu menu) { + getMenuInflater().inflate(R.menu.menu, menu); + return true; + } + + @Override + public boolean onOptionsItemSelected(MenuItem item) { + switch (item.getItemId()) { + case R.id.about: + final Intent intent = new Intent(getApplicationContext(), AboutActivity.class); + startActivity(intent); + return true; + default: + return super.onOptionsItemSelected(item); + } + } + private void setupDarkTheme() { mDarkThemeSwitch.setChecked(mConfig.getIsDarkTheme()); } diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 41d269c0..488d1ac6 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -17,21 +17,21 @@ android:layout_height="wrap_content"/> + android:src="@mipmap/settings"/> diff --git a/app/src/main/res/menu/menu.xml b/app/src/main/res/menu/menu.xml index f408693c..0cce6d24 100644 --- a/app/src/main/res/menu/menu.xml +++ b/app/src/main/res/menu/menu.xml @@ -2,7 +2,7 @@ diff --git a/app/src/main/res/mipmap-hdpi/about.png b/app/src/main/res/mipmap-hdpi/about.png deleted file mode 100644 index e9585a04..00000000 Binary files a/app/src/main/res/mipmap-hdpi/about.png and /dev/null differ diff --git a/app/src/main/res/mipmap-hdpi/settings.png b/app/src/main/res/mipmap-hdpi/settings.png new file mode 100644 index 00000000..a8bc6bd1 Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/settings.png differ diff --git a/app/src/main/res/mipmap-mdpi/about.png b/app/src/main/res/mipmap-mdpi/about.png deleted file mode 100644 index e10918b8..00000000 Binary files a/app/src/main/res/mipmap-mdpi/about.png and /dev/null differ diff --git a/app/src/main/res/mipmap-mdpi/settings.png b/app/src/main/res/mipmap-mdpi/settings.png new file mode 100644 index 00000000..506f2716 Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/settings.png differ diff --git a/app/src/main/res/mipmap-xhdpi/about.png b/app/src/main/res/mipmap-xhdpi/about.png deleted file mode 100644 index 0f88a236..00000000 Binary files a/app/src/main/res/mipmap-xhdpi/about.png and /dev/null differ diff --git a/app/src/main/res/mipmap-xhdpi/settings.png b/app/src/main/res/mipmap-xhdpi/settings.png new file mode 100644 index 00000000..165aab51 Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/settings.png differ diff --git a/app/src/main/res/mipmap-xxhdpi/about.png b/app/src/main/res/mipmap-xxhdpi/about.png deleted file mode 100644 index c47c09c0..00000000 Binary files a/app/src/main/res/mipmap-xxhdpi/about.png and /dev/null differ diff --git a/app/src/main/res/mipmap-xxhdpi/settings.png b/app/src/main/res/mipmap-xxhdpi/settings.png new file mode 100644 index 00000000..815ed6dd Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/settings.png differ diff --git a/app/src/main/res/mipmap-xxxhdpi/about.png b/app/src/main/res/mipmap-xxxhdpi/about.png deleted file mode 100644 index 3b604fc7..00000000 Binary files a/app/src/main/res/mipmap-xxxhdpi/about.png and /dev/null differ diff --git a/app/src/main/res/mipmap-xxxhdpi/settings.png b/app/src/main/res/mipmap-xxxhdpi/settings.png new file mode 100644 index 00000000..9e242e77 Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/settings.png differ