mirror of
https://codeberg.org/tom79/Fedilab
synced 2024-12-11 10:46:01 +01:00
Some other fixes
This commit is contained in:
parent
6d3148bd51
commit
908d56109c
@ -26,7 +26,8 @@
|
|||||||
android:configChanges="orientation|screenSize"
|
android:configChanges="orientation|screenSize"
|
||||||
android:icon="@mipmap/ic_launcher_bubbles"
|
android:icon="@mipmap/ic_launcher_bubbles"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:hardwareAccelerated="true"
|
android:hardwareAccelerated="false"
|
||||||
|
android:largeHeap="true"
|
||||||
android:roundIcon="@mipmap/ic_launcher_bubbles_round"
|
android:roundIcon="@mipmap/ic_launcher_bubbles_round"
|
||||||
android:supportsRtl="true"
|
android:supportsRtl="true"
|
||||||
android:theme="@style/AppThemeDark"
|
android:theme="@style/AppThemeDark"
|
||||||
|
@ -1104,6 +1104,7 @@ public class Helper {
|
|||||||
String targetedUrl = disableGif ? account.mastodon_account.avatar_static : account.mastodon_account.avatar;
|
String targetedUrl = disableGif ? account.mastodon_account.avatar_static : account.mastodon_account.avatar;
|
||||||
if (targetedUrl != null && Helper.isValidContextForGlide(context)) {
|
if (targetedUrl != null && Helper.isValidContextForGlide(context)) {
|
||||||
if (disableGif || (!targetedUrl.endsWith(".gif"))) {
|
if (disableGif || (!targetedUrl.endsWith(".gif"))) {
|
||||||
|
try {
|
||||||
RequestBuilder<Drawable> requestBuilder = Glide.with(context)
|
RequestBuilder<Drawable> requestBuilder = Glide.with(context)
|
||||||
.asDrawable()
|
.asDrawable()
|
||||||
.load(targetedUrl)
|
.load(targetedUrl)
|
||||||
@ -1112,6 +1113,8 @@ public class Helper {
|
|||||||
requestBuilder = requestBuilder.apply(new RequestOptions().transform(new CenterCrop(), new RoundedCorners(10)));
|
requestBuilder = requestBuilder.apply(new RequestOptions().transform(new CenterCrop(), new RoundedCorners(10)));
|
||||||
}
|
}
|
||||||
requestBuilder.apply(new RequestOptions().transform(new CenterCrop(), new RoundedCorners(10))).into(view);
|
requestBuilder.apply(new RequestOptions().transform(new CenterCrop(), new RoundedCorners(10))).into(view);
|
||||||
|
} catch (Exception ignored) {
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
RequestBuilder<GifDrawable> requestBuilder = Glide.with(context)
|
RequestBuilder<GifDrawable> requestBuilder = Glide.with(context)
|
||||||
.asGif()
|
.asGif()
|
||||||
|
@ -103,7 +103,7 @@ class FragmentSettingsCategories : PreferenceFragmentCompat() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
val adminPreference = findPreference<Preference>(getString(R.string.pref_category_key_administration))
|
val adminPreference = findPreference<Preference>(getString(R.string.pref_category_key_administration))
|
||||||
adminPreference?.isVisible = currentAccount.admin
|
adminPreference?.isVisible = currentAccount != null && currentAccount.admin
|
||||||
adminPreference?.setOnPreferenceClickListener { false }
|
adminPreference?.setOnPreferenceClickListener { false }
|
||||||
|
|
||||||
findPreference<Preference>(getString(R.string.pref_category_key_languages))?.setOnPreferenceClickListener {
|
findPreference<Preference>(getString(R.string.pref_category_key_languages))?.setOnPreferenceClickListener {
|
||||||
|
Loading…
Reference in New Issue
Block a user