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 @@ + Bearbeiten Rückgängig Teilen + Eigenschaften Datei umbenennen Ordner umbenennen Konnte die Datei nicht umbenennen diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index a72434c27..5d19056c7 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -9,6 +9,7 @@ Edit Deshacer Compartir + Properties Renombrar archivo Renombrar carpeta No se pudo renombrar el archivo diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index e6db06b3f..c4f1513b0 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -9,6 +9,7 @@ Edit Annulla Condividi + Proprietà Rinomina file Rinomina cartella Impossibile rinominare il file diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index 75a2ade43..6fbb04242 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -9,6 +9,7 @@ Edit 元に戻す 共有 + Properties ファイルの名前を変更 フォルダーの名前を変更 ファイルの名前を変更できませんでした diff --git a/app/src/main/res/values-pt-rPT/strings.xml b/app/src/main/res/values-pt-rPT/strings.xml index 8a2d4a48a..cc3a126c5 100644 --- a/app/src/main/res/values-pt-rPT/strings.xml +++ b/app/src/main/res/values-pt-rPT/strings.xml @@ -9,6 +9,7 @@ Edit Desfazer Partilhar + Propriedades Renomear ficheiro Renomear pasta Não foi possível renomear o ficheiro diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml index 52d96714e..710cd65c9 100644 --- a/app/src/main/res/values-sv/strings.xml +++ b/app/src/main/res/values-sv/strings.xml @@ -9,6 +9,7 @@ Edit Ångra Dela + Properties Döp om fil Döp om mapp Det gick inte att döpa om filen diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index d47591e8a..f1f1b48fb 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -9,6 +9,7 @@ Edit Undo Share + Properties Rename file Rename folder Could not rename the file