diff --git a/app/build.gradle b/app/build.gradle index 0cc44fac8..131b18d06 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -42,15 +42,12 @@ dependencies { compile 'com.davemorrissey.labs:subsampling-scale-image-view:3.5.0' compile 'com.theartofdev.edmodo:android-image-cropper:2.3.1' compile 'com.booking:rtlviewpager:1.0.1' + compile 'com.simplemobiletools:fileproperties:1.0.2@aar' compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" apt 'com.jakewharton:butterknife-compiler:8.0.1' } -repositories { - mavenCentral() -} - buildscript { ext.kotlin_version = '1.0.3' repositories { 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 a3b3c2fe4..069e25959 100644 --- a/app/src/main/java/com/simplemobiletools/gallery/activities/MainActivity.java +++ b/app/src/main/java/com/simplemobiletools/gallery/activities/MainActivity.java @@ -15,7 +15,6 @@ import android.support.design.widget.Snackbar; import android.support.v4.app.ActivityCompat; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.app.AlertDialog; -import android.util.Log; import android.util.SparseBooleanArray; import android.view.ActionMode; import android.view.Menu; @@ -383,6 +382,10 @@ public class MainActivity extends SimpleActivity return type != null && (type.startsWith("video/") || type.equals(MediaStore.Video.Media.CONTENT_TYPE)); } + private void showProperties() { + + } + @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (resultCode == RESULT_OK) { @@ -475,6 +478,9 @@ public class MainActivity extends SimpleActivity @Override public boolean onActionItemClicked(ActionMode mode, MenuItem item) { switch (item.getItemId()) { + case R.id.cab_properties: + showProperties(); + return true; case R.id.cab_edit: editDirectory(); return true; diff --git a/app/src/main/res/menu/directories_cab.xml b/app/src/main/res/menu/directories_cab.xml index d82c156d3..e0a623691 100644 --- a/app/src/main/res/menu/directories_cab.xml +++ b/app/src/main/res/menu/directories_cab.xml @@ -1,6 +1,11 @@