updated translations

This commit is contained in:
gdlbo
2023-06-14 17:36:34 +03:00
parent e78d08fb94
commit 486026b8aa
6 changed files with 23 additions and 4 deletions
@@ -19658,6 +19658,9 @@ public final class R {
public static final int vkx_integration_enabled_info = 0x7f12188a; // 2131892362
public static final int whitelisted_ad_groups_stories_title = 0x7f12188b; // 2131892363
public static final int writebar_ios_title = 0x7f12188c; // 2131892364
public static final int cache_size = 0x7f12188d; // 2131892365
public static final int cache_size_summ = 0x7f12188e; // 2131892366
public static final int clear_all_cache = 0x7f12188f; // 2131892367
}
public static final class style {
@@ -79,12 +79,12 @@ public class DataSettingsFragment extends TrackedMaterialPreferenceToolbarFragme
PreferenceFragmentUtils.addPreference(
getPreferenceScreen(),
"currcache",
"Размер приложения",
"Вес кеша приложения: " + CacheUtils.humanReadableByteCountBin(IOUtils.getDirSize(AndroidUtils.getGlobalContext().getCacheDir())),
getString(com.vtosters.lite.R.string.cache_size),
getString(com.vtosters.lite.R.string.cache_size_summ) + ": " + CacheUtils.humanReadableByteCountBin(IOUtils.getDirSize(AndroidUtils.getGlobalContext().getCacheDir())),
null,
preference -> {
new VkAlertDialog.Builder(requireContext())
.setTitle("Очистить весь кеш?")
.setTitle(getString(com.vtosters.lite.R.string.clear_all_cache))
.setPositiveButton(requireContext().getString(com.vtosters.lite.R.string.yes), (dialogInterface, i) -> {
new WebView(requireContext()).clearCache(true);
VKImageLoader.e();
@@ -297,7 +297,7 @@ public class DataSettingsFragment extends TrackedMaterialPreferenceToolbarFragme
}
private void updateCacheSize() {
findPreference("currcache").setSummary("Вес кеша приложения: " + CacheUtils.humanReadableByteCountBin(IOUtils.getDirSize(AndroidUtils.getGlobalContext().getCacheDir())));
findPreference("currcache").setSummary(getString(com.vtosters.lite.R.string.cache_size_summ) + ": " + CacheUtils.humanReadableByteCountBin(IOUtils.getDirSize(AndroidUtils.getGlobalContext().getCacheDir())));
}
@SuppressLint({"CommitPrefEdits", "SetTextI18n"})