Skip to content

Commit

Permalink
Merge pull request #81 from Arctosoft/develop
Browse files Browse the repository at this point in the history
Hide "Edit text" option for non-text files
  • Loading branch information
hej2010 authored Aug 20, 2024
2 parents 4618c0c + 4489cb5 commit c4e8ea7
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
applicationId "se.arctosoft.vault"
minSdk 28
targetSdk 34
versionCode 28
versionName "1.10.0"
versionCode 29
versionName "1.10.1"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,8 @@ private void showMenu(FragmentActivity context, GalleryFile galleryFile, Gallery
});
menu.getItem(2).setVisible(!isAllFolder); // hide edit note in All folder
menu.getItem(2).setEnabled(!isAllFolder);
menu.getItem(3).setVisible(!isAllFolder); // hide edit file in All folder
menu.getItem(3).setEnabled(!isAllFolder);
menu.getItem(3).setVisible(!isAllFolder && galleryFile.isText()); // hide edit text in All folder and for non-text files
menu.getItem(3).setEnabled(!isAllFolder && galleryFile.isText());

popup.show();
}
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.5.0' apply false
id 'com.android.library' version '8.5.0' apply false
id 'com.android.application' version '8.5.2' apply false
id 'com.android.library' version '8.5.2' apply false
id 'com.mikepenz.aboutlibraries.plugin' version '10.8.3' apply false
}

Expand Down
3 changes: 3 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/29.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* Encrypt text files
* Order files by date and size
* Filter files by file type
3 changes: 3 additions & 0 deletions fastlane/metadata/android/sv-SE/changelogs/29.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* Kryptera textfiler
* Ordna filer efter datum och storlek
* Filtrera filer efter filtyp

0 comments on commit c4e8ea7

Please sign in to comment.