diff --git a/app/src/main/java/com/simplemobiletools/gallery/activities/ViewPagerActivity.java b/app/src/main/java/com/simplemobiletools/gallery/activities/ViewPagerActivity.java
index 80e5ae5b8..7c2f003dc 100644
--- a/app/src/main/java/com/simplemobiletools/gallery/activities/ViewPagerActivity.java
+++ b/app/src/main/java/com/simplemobiletools/gallery/activities/ViewPagerActivity.java
@@ -19,6 +19,7 @@ import android.widget.EditText;
import android.widget.RelativeLayout;
import android.widget.TextView;
+import com.simplemobiletools.fileproperties.dialogs.PropertiesDialog;
import com.simplemobiletools.gallery.Constants;
import com.simplemobiletools.gallery.MyViewPager;
import com.simplemobiletools.gallery.R;
@@ -164,6 +165,9 @@ public class ViewPagerActivity extends SimpleActivity
case R.id.menu_edit:
openEditor();
return true;
+ case R.id.menu_properties:
+ showProperties();
+ return true;
default:
return super.onOptionsItemSelected(item);
}
@@ -212,6 +216,10 @@ public class ViewPagerActivity extends SimpleActivity
}
}
+ private void showProperties() {
+ new PropertiesDialog(this, getCurrentFile().getAbsolutePath(), false);
+ }
+
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == EDIT_IMAGE) {
diff --git a/app/src/main/res/menu/viewpager_menu.xml b/app/src/main/res/menu/viewpager_menu.xml
index 801f63da4..ed2ebbcff 100644
--- a/app/src/main/res/menu/viewpager_menu.xml
+++ b/app/src/main/res/menu/viewpager_menu.xml
@@ -24,6 +24,11 @@
android:icon="@mipmap/rename"
android:title="@string/rename"
app:showAsAction="ifRoom"/>
+