diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java index 0dcbc680a..fd9d2aa7a 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java +++ b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java @@ -144,7 +144,6 @@ import java.io.File; import java.io.IOException; import java.lang.ref.WeakReference; import java.net.URISyntaxException; -import java.nio.file.Files; import java.nio.file.Path; import java.text.SimpleDateFormat; import java.util.AbstractMap; @@ -5835,17 +5834,6 @@ public class ConversationFragment extends XmppFragment } }; - public boolean isEmpty(Path path) throws IOException { - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { - if (Files.isDirectory(path)) { - try (Stream entries = Files.list(path)) { - return !entries.findFirst().isPresent(); - } - } - } - return false; - } - private final OnClickListener mgifsButtonListener = new OnClickListener() { @Override public void onClick(View v) { diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationsActivity.java b/src/main/java/eu/siacs/conversations/ui/ConversationsActivity.java index 4afbdeb2c..ed858dad8 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConversationsActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/ConversationsActivity.java @@ -807,8 +807,8 @@ public class ConversationsActivity extends XmppActivity implements OnConversatio if (getPreferences().contains("nomedia")) return false; AlertDialog.Builder builder = new AlertDialog.Builder(this); - builder.setTitle("Show media in gallery"); - builder.setMessage("Would you like to show received and sent media in your system gallery?"); + builder.setTitle(R.string.show_media_title); + builder.setMessage(R.string.show_media_summary); builder.setPositiveButton(R.string.yes, (dialog, which) -> { getPreferences().edit().putBoolean("nomedia", false).apply(); }); diff --git a/src/main/java/eu/siacs/conversations/ui/fragment/settings/MainSettingsFragment.java b/src/main/java/eu/siacs/conversations/ui/fragment/settings/MainSettingsFragment.java index 0c660d25c..f67decb45 100644 --- a/src/main/java/eu/siacs/conversations/ui/fragment/settings/MainSettingsFragment.java +++ b/src/main/java/eu/siacs/conversations/ui/fragment/settings/MainSettingsFragment.java @@ -40,7 +40,7 @@ public class MainSettingsFragment extends PreferenceFragmentCompat { up.setVisible(!Strings.isNullOrEmpty(getString(R.string.default_push_server))); findPreference("extensions").setOnPreferenceClickListener((p) -> { getFragmentManager().beginTransaction() - .replace(R.id.fragment_container, new com.cheogram.android.ExtensionSettingsFragment()) + .replace(R.id.fragment_container, new de.monocles.chat.ExtensionSettingsFragment()) .addToBackStack(null) .commit(); return true; diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index 4c3f78e95..700441b73 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -1394,4 +1394,9 @@ Open Call integration Calls from this app interact with regular phone calls, such as ending one call when another starts. + Add, remove, and configure extensions + Extensions + Add extension + Show media in gallery? + Would you like to show received and sent media in your system gallery? \ No newline at end of file