Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Dev4Mod committed Jul 11, 2024
1 parent ebad00b commit 103a062
Show file tree
Hide file tree
Showing 13 changed files with 170 additions and 165 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -645,8 +645,8 @@ private Drawable loadDrawableFromFile(String filePath, int reqWidth, int reqHeig
}

var bitmap = BitmapFactory.decodeFile(file.getAbsolutePath());
var newHeight = Math.min(bitmap.getHeight(), reqHeight);
var newWidth = Math.min(bitmap.getWidth(), reqWidth);
var newHeight = reqHeight < 10 ? bitmap.getHeight() : Math.min(bitmap.getHeight(), reqHeight);
var newWidth = reqWidth < 10 ? bitmap.getWidth() : Math.min(bitmap.getWidth(), reqWidth);
bitmap = Bitmap.createScaledBitmap(bitmap, newWidth, newHeight, true);

return new BitmapDrawable(context.getResources(), bitmap);
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-ar/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -335,4 +335,5 @@
<string name="import_theme">Import Theme</string>
<string name="theme_manager">Theme Manager</string>
<string name="manage_theme_sum">Manage themes using CSS for WhatsApp</string>
<string name="grant_permission">Please, grant permissions to read images and read external storage</string>
</resources>
51 changes: 26 additions & 25 deletions app/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@
<string name="audio_transcription_sum">Aktiviere native WhatsApp Audio-Transkription (Überprüfe das Verbindungsmenü für Transkriptionsoptionen)</string>
<string name="viewed_your_status">%s hat Ihren Status angesehen</string>
<string name="viewed_your_message">%s hat Ihre Nachricht angesehen</string>
<string name="old_statuses">Alte Status</string>
<string name="old_statuses">Alter Statusstil</string>
<string name="old_statuses_sum">Änderung der alten Statusseite zu vertikal und ohne Kanäle (NOTE: Kann Verzögerungen in der Schnittstelle verursachen)</string>
<string name="force_english">Erzwinge englische Sprache für WA Enhancer</string>
<string name="select_status_type">Status Typ auswählen</string>
Expand Down Expand Up @@ -310,28 +310,29 @@
<string name="animation_emojis_sum">Aktiviert animierte Emojis (dies erzeugt große Emojis in Unterhaltungen)</string>
<string name="vertical_status">Vertikaler Status</string>
<string name="vertical_status_sum">Status im vertikalen Modus anzeigen</string>
<string name="disable_version_check">Disable Version Check</string>
<string name="disable_version_check_sum">Disables the supported version check of WhatsApp (Bugs may occur in unsupported versions that will not be fixed soon)</string>
<string name="invalid_zip_file">Invalid zip file</string>
<string name="theme_imported_successfully">Theme imported successfully</string>
<string name="new_theme_name">New Theme Name</string>
<string name="create">Create</string>
<string name="storage_permission">Storage Permission</string>
<string name="permission_storage">Allow Wa Enhancer to access your external storage? Needs to be done on Android 11+</string>
<string name="allow">Allow</string>
<string name="deny">Deny</string>
<string name="saved">Saved</string>
<string name="exported">Exported</string>
<string name="enter_image_file_name">Enter image file name</string>
<string name="error_image_name">Name must end with .png</string>
<string name="imported_as">"Imported as "</string>
<string name="save">Save</string>
<string name="import_image">Import Image</string>
<string name="export_as_zip">Export as zip</string>
<string name="clear">Clear</string>
<string name="exit">Exit</string>
<string name="create_new_theme">Create New Theme</string>
<string name="import_theme">Import Theme</string>
<string name="theme_manager">Theme Manager</string>
<string name="manage_theme_sum">Manage themes using CSS for WhatsApp</string>
<string name="disable_version_check">Versionsüberprüfung</string>
<string name="disable_version_check_sum">Deaktiviert die unterstützte Versionsüberprüfung von WhatsApp (Es können Fehler in nicht unterstützten Versionen auftreten.)</string>
<string name="invalid_zip_file">Ungültige Zip-Datei</string>
<string name="theme_imported_successfully">Design erfolgreich importiert</string>
<string name="new_theme_name">Neuer Themename</string>
<string name="create">Erstellen</string>
<string name="storage_permission">Speicherberechtigung</string>
<string name="permission_storage">Wa Enhancer den Zugriff auf Ihren externen Speicher erlauben? Benötigt ab Android 11+</string>
<string name="allow">Zulassen</string>
<string name="deny">Verweigern</string>
<string name="saved">Gespeichert</string>
<string name="exported">Exportiert</string>
<string name="enter_image_file_name">Dateiname eingeben</string>
<string name="error_image_name">Name muss mit .png enden</string>
<string name="imported_as">"Importiert als "</string>
<string name="save">Speichern</string>
<string name="import_image">Bild importieren</string>
<string name="export_as_zip">Als Zip-Datei exportieren</string>
<string name="clear">Löschen</string>
<string name="exit">Beenden</string>
<string name="create_new_theme">Neues Thema erstellen</string>
<string name="import_theme">Design importieren</string>
<string name="theme_manager">Design Manager</string>
<string name="manage_theme_sum">Themes mit CSS für WhatsApp verwalten</string>
<string name="grant_permission">Please, grant permissions to read images and read external storage</string>
</resources>
53 changes: 27 additions & 26 deletions app/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_desc">Un módulo LSposed para personalizar tu WhatsApp</string>
<string name="app_desc">Un módulo LSPosed para personalizar tu WhatsApp</string>
<string name="antirevoke">Anti-Eliminar Mensajes</string>
<string name="antirevoke_sum">Cuando esté activo, los mensajes no se eliminarán.</string>
<string name="ghostmode">Ocultar \"escribiendo\"</string>
Expand Down Expand Up @@ -304,34 +304,35 @@
<string name="click_times">Haz clic 5 veces en el título de WhatsApp</string>
<string name="hold_title">Mantenga presionado el título de WhatsApp</string>
<string name="read_all_mark_as_read">Leer todo (marcar como leído)</string>
<string name="enable_copy_status">Habilitar copiar estado</string>
<string name="enable_copy_status">Habilitar copiar texto de los estados</string>
<string name="enable_copy_status_sum">Activa la posibilidad de copiar la descripción y texto de los estados manteniéndo presionado en ellos</string>
<string name="animation_emojis">Emojis Animados</string>
<string name="animation_emojis_sum">Activar emojis animados (esto crea grandes emojis en las conversaciones)</string>
<string name="vertical_status">Estados verticales</string>
<string name="vertical_status_sum">Mostrar estados en modo vertical en la pestaña Novedades</string>
<string name="disable_version_check">Disable Version Check</string>
<string name="disable_version_check_sum">Disables the supported version check of WhatsApp (Bugs may occur in unsupported versions that will not be fixed soon)</string>
<string name="invalid_zip_file">Invalid zip file</string>
<string name="theme_imported_successfully">Theme imported successfully</string>
<string name="new_theme_name">New Theme Name</string>
<string name="create">Create</string>
<string name="storage_permission">Storage Permission</string>
<string name="permission_storage">Allow Wa Enhancer to access your external storage? Needs to be done on Android 11+</string>
<string name="allow">Allow</string>
<string name="deny">Deny</string>
<string name="saved">Saved</string>
<string name="exported">Exported</string>
<string name="enter_image_file_name">Enter image file name</string>
<string name="error_image_name">Name must end with .png</string>
<string name="imported_as">"Imported as "</string>
<string name="save">Save</string>
<string name="import_image">Import Image</string>
<string name="export_as_zip">Export as zip</string>
<string name="clear">Clear</string>
<string name="exit">Exit</string>
<string name="create_new_theme">Create New Theme</string>
<string name="import_theme">Import Theme</string>
<string name="theme_manager">Theme Manager</string>
<string name="manage_theme_sum">Manage themes using CSS for WhatsApp</string>
<string name="disable_version_check">Desactivar comprobación de versiones</string>
<string name="disable_version_check_sum">Deshabilita la comprobación de la versión soportada de WhatsApp (los bugs pueden ocurrir en versiones no soportadas que no se arreglarán pronto)</string>
<string name="invalid_zip_file">Archivo zip inválido</string>
<string name="theme_imported_successfully">Tema importado correctamente</string>
<string name="new_theme_name">Nuevo nombre del tema</string>
<string name="create">Crear</string>
<string name="storage_permission">Permiso de almacenamiento</string>
<string name="permission_storage">¿Permitir a Wa Enhancer acceder a tu almacenamiento externo? Es necesario en Android 11+</string>
<string name="allow">Permitir</string>
<string name="deny">Denegar</string>
<string name="saved">Guardado</string>
<string name="exported">Exportado</string>
<string name="enter_image_file_name">Introduce el nombre de la imagen</string>
<string name="error_image_name">El nombre debe terminar con .png</string>
<string name="imported_as">"Importado como "</string>
<string name="save">Guardar</string>
<string name="import_image">Importar imagen</string>
<string name="export_as_zip">Exportar como zip</string>
<string name="clear">Limpiar</string>
<string name="exit">Salir</string>
<string name="create_new_theme">Crear nuevo tema</string>
<string name="import_theme">Importar tema</string>
<string name="theme_manager">Gestor de temas</string>
<string name="manage_theme_sum">Administrar temas usando CSS para WhatsApp</string>
<string name="grant_permission">Please, grant permissions to read images and read external storage</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -334,4 +334,5 @@
<string name="import_theme">Import Theme</string>
<string name="theme_manager">Theme Manager</string>
<string name="manage_theme_sum">Manage themes using CSS for WhatsApp</string>
<string name="grant_permission">Please, grant permissions to read images and read external storage</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-id/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -346,4 +346,5 @@ Saat Anda mengaktifkan bekukan \"terakhir dilihat dan online\", Anda tidak dapat
<string name="import_theme">Import Theme</string>
<string name="theme_manager">Theme Manager</string>
<string name="manage_theme_sum">Manage themes using CSS for WhatsApp</string>
<string name="grant_permission">Please, grant permissions to read images and read external storage</string>
</resources>
49 changes: 25 additions & 24 deletions app/src/main/res/values-in/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -319,28 +319,29 @@ Harap gunakan versi WhatsApp yang didukung!</string>
<string name="animation_emojis_sum">Aktifkan emoji animasi (Membuat emoji menjadi besar dalam percakapan)</string>
<string name="vertical_status">Status Vertikal</string>
<string name="vertical_status_sum">Tampilkan status dalam mode vertikal pada tab Pembaruan</string>
<string name="disable_version_check">Disable Version Check</string>
<string name="disable_version_check_sum">Disables the supported version check of WhatsApp (Bugs may occur in unsupported versions that will not be fixed soon)</string>
<string name="invalid_zip_file">Invalid zip file</string>
<string name="theme_imported_successfully">Theme imported successfully</string>
<string name="new_theme_name">New Theme Name</string>
<string name="create">Create</string>
<string name="storage_permission">Storage Permission</string>
<string name="permission_storage">Allow Wa Enhancer to access your external storage? Needs to be done on Android 11+</string>
<string name="allow">Allow</string>
<string name="deny">Deny</string>
<string name="saved">Saved</string>
<string name="exported">Exported</string>
<string name="enter_image_file_name">Enter image file name</string>
<string name="error_image_name">Name must end with .png</string>
<string name="imported_as">"Imported as "</string>
<string name="save">Save</string>
<string name="import_image">Import Image</string>
<string name="export_as_zip">Export as zip</string>
<string name="clear">Clear</string>
<string name="exit">Exit</string>
<string name="create_new_theme">Create New Theme</string>
<string name="import_theme">Import Theme</string>
<string name="theme_manager">Theme Manager</string>
<string name="manage_theme_sum">Manage themes using CSS for WhatsApp</string>
<string name="disable_version_check">Nonaktifkan Pemeriksaan Versi</string>
<string name="disable_version_check_sum">Menonaktifkan pemeriksaan versi Whatsapp yang didukung\n(Bug mungkin terjadi pada versi yang tidak didukung dan tidak akan segera diperbaiki)</string>
<string name="invalid_zip_file">File zip tidak valid</string>
<string name="theme_imported_successfully">Tema berhasil dipulihkan</string>
<string name="new_theme_name">Nama Tema Baru</string>
<string name="create">Buat</string>
<string name="storage_permission">Izin Penyimpanan</string>
<string name="permission_storage">Izinkan Wa Enhancer mengakses penyimpanan eksternal Anda? Perlu dilakukan di Android 11+</string>
<string name="allow">Izinkan</string>
<string name="deny">Tolak</string>
<string name="saved">Disimpan</string>
<string name="exported">Dicadangkan</string>
<string name="enter_image_file_name">Nama file gambar</string>
<string name="error_image_name">Nama harus diakhiri dengan .png</string>
<string name="imported_as">"Pulihkan sebagai "</string>
<string name="save">Simpan</string>
<string name="import_image">Pulihkan Gambar</string>
<string name="export_as_zip">Cadangkan sebagai zip</string>
<string name="clear">Hapus</string>
<string name="exit">Keluar</string>
<string name="create_new_theme">Buat Tema Baru</string>
<string name="import_theme">Pulihkan Tema</string>
<string name="theme_manager">Manajer Tema CSS</string>
<string name="manage_theme_sum">Kelola tema menggunakan CSS untuk WhatsApp</string>
<string name="grant_permission">Perhatian, berikan izin untuk membaca gambar dan membaca penyimpanan eksternal</string>
</resources>
49 changes: 25 additions & 24 deletions app/src/main/res/values-it/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -310,28 +310,29 @@
<string name="animation_emojis_sum">Attiva emoji animate (questo crea emoji grandi nelle conversazioni)</string>
<string name="vertical_status">Stato Verticale</string>
<string name="vertical_status_sum">Mostra lo stato in modalità verticale nella scheda Aggiornamenti</string>
<string name="disable_version_check">Disable Version Check</string>
<string name="disable_version_check_sum">Disables the supported version check of WhatsApp (Bugs may occur in unsupported versions that will not be fixed soon)</string>
<string name="invalid_zip_file">Invalid zip file</string>
<string name="theme_imported_successfully">Theme imported successfully</string>
<string name="new_theme_name">New Theme Name</string>
<string name="create">Create</string>
<string name="storage_permission">Storage Permission</string>
<string name="permission_storage">Allow Wa Enhancer to access your external storage? Needs to be done on Android 11+</string>
<string name="allow">Allow</string>
<string name="deny">Deny</string>
<string name="saved">Saved</string>
<string name="exported">Exported</string>
<string name="enter_image_file_name">Enter image file name</string>
<string name="error_image_name">Name must end with .png</string>
<string name="imported_as">"Imported as "</string>
<string name="save">Save</string>
<string name="import_image">Import Image</string>
<string name="export_as_zip">Export as zip</string>
<string name="clear">Clear</string>
<string name="exit">Exit</string>
<string name="create_new_theme">Create New Theme</string>
<string name="import_theme">Import Theme</string>
<string name="theme_manager">Theme Manager</string>
<string name="manage_theme_sum">Manage themes using CSS for WhatsApp</string>
<string name="disable_version_check">Disabilita Controllo Versione</string>
<string name="disable_version_check_sum">Disabilita il controllo della versione supportata di WhatsApp (i bug possono verificarsi in versioni non supportate che non saranno risolti a breve)</string>
<string name="invalid_zip_file">File zip non valido</string>
<string name="theme_imported_successfully">Tema importato con successo</string>
<string name="new_theme_name">Nuovo Nome Tema</string>
<string name="create">Crea</string>
<string name="storage_permission">Autorizzazione Di Archiviazione</string>
<string name="permission_storage">Consenti a Wa Enhancer di accedere alla tua memoria esterna? Necessario su Android 11+</string>
<string name="allow">Consenti</string>
<string name="deny">Nega</string>
<string name="saved">Salvato</string>
<string name="exported">Esportato</string>
<string name="enter_image_file_name">Inserisci il nome del file immagine</string>
<string name="error_image_name">Il nome deve terminare con .png</string>
<string name="imported_as">"Importato come "</string>
<string name="save">Salva</string>
<string name="import_image">Importa immagine</string>
<string name="export_as_zip">Esporta come zip</string>
<string name="clear">Pulisci</string>
<string name="exit">Esci</string>
<string name="create_new_theme">Crea Nuovo Tema</string>
<string name="import_theme">Importa Tema</string>
<string name="theme_manager">Gestore Tema</string>
<string name="manage_theme_sum">Gestisci temi utilizzando CSS per WhatsApp</string>
<string name="grant_permission">Please, grant permissions to read images and read external storage</string>
</resources>
Loading

0 comments on commit 103a062

Please sign in to comment.