diff --git a/app/src/main/java/com/simplemobiletools/gallery/activities/MainActivity.java b/app/src/main/java/com/simplemobiletools/gallery/activities/MainActivity.java index d33e9446e..06062033c 100644 --- a/app/src/main/java/com/simplemobiletools/gallery/activities/MainActivity.java +++ b/app/src/main/java/com/simplemobiletools/gallery/activities/MainActivity.java @@ -90,17 +90,23 @@ public class MainActivity extends AppCompatActivity if (mIsThirdPartyIntent) return false; - getMenuInflater().inflate(R.menu.menu, menu); + getMenuInflater().inflate(R.menu.menu_main, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { - case R.id.about: + case R.id.camera: { + final Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); + startActivity(intent); + return true; + } + case R.id.about: { final Intent intent = new Intent(getApplicationContext(), AboutActivity.class); startActivity(intent); return true; + } default: return super.onOptionsItemSelected(item); } @@ -473,7 +479,7 @@ public class MainActivity extends AppCompatActivity @Override public boolean onCreateActionMode(ActionMode mode, Menu menu) { final MenuInflater inflater = mode.getMenuInflater(); - inflater.inflate(R.menu.directories_menu, menu); + inflater.inflate(R.menu.directories_cab, menu); mActionMode = mode; return true; } diff --git a/app/src/main/res/menu/directories_menu.xml b/app/src/main/res/menu/directories_cab.xml similarity index 100% rename from app/src/main/res/menu/directories_menu.xml rename to app/src/main/res/menu/directories_cab.xml diff --git a/app/src/main/res/menu/menu.xml b/app/src/main/res/menu/menu_main.xml similarity index 63% rename from app/src/main/res/menu/menu.xml rename to app/src/main/res/menu/menu_main.xml index 0cce6d24e..d7f577285 100644 --- a/app/src/main/res/menu/menu.xml +++ b/app/src/main/res/menu/menu_main.xml @@ -1,6 +1,11 @@