Disable artist image downloading on fdroid flavor by default

This commit is contained in:
Prathamesh More 2022-06-24 11:34:04 +05:30
parent 01c5c10def
commit 778025e989
5 changed files with 9 additions and 7 deletions

View file

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="download_policy">never</string>
</resources>

View file

@ -90,7 +90,6 @@ class ContributorAdapter(
.load("file:///android_asset/images/${contributor.image}".toUri())
.error(R.drawable.ic_account)
.placeholder(R.drawable.ic_account)
.dontAnimate()
.into(image)
}
}

View file

@ -431,7 +431,7 @@ public class LrcView extends View {
mTimePaint.setColor(mTimeTextColor);
String timeText = LrcUtils.formatTime(mLrcEntryList.get(centerLine).getTime());
float timeX = getWidth() - mTimeTextWidth / 2;
float timeX = getWidth() - mTimeTextWidth / 2F;
float timeY = centerY - (mTimeFontMetrics.descent + mTimeFontMetrics.ascent) / 2;
canvas.drawText(timeText, timeX, timeY, mTimePaint);
}
@ -531,7 +531,7 @@ public class LrcView extends View {
lrcEntry.init(mLrcPaint, (int) getLrcWidth(), mTextGravity);
}
mOffset = getHeight() / 2;
mOffset = getHeight() / 2F;
}
private void reset() {
@ -611,7 +611,7 @@ public class LrcView extends View {
private float getOffset(int line) {
if (mLrcEntryList.get(line).getOffset() == Float.MIN_VALUE) {
float offset = getHeight() / 2;
float offset = getHeight() / 2F;
for (int i = 1; i <= line; i++) {
offset -=
((mLrcEntryList.get(i - 1).getHeight() + mLrcEntryList.get(i).getHeight()) >> 1)

View file

@ -14,7 +14,6 @@
<string name="app_name" translatable="false">Retro Music</string>
<string name="git_hub" translatable="false">GitHub</string>
<string name="app_shortcut_last_added_long" translatable="false">@string/last_added</string>
<string name="app_shortcut_last_added_short" translatable="false">@string/last_added</string>
<string name="app_shortcut_shuffle_all_long" translatable="false">@string/action_shuffle_all</string>
@ -28,5 +27,5 @@
<string name="sort_order_album_artist">@string/album_artist</string>
<string name="app_widget_circle_name">@string/circle</string>
<string name="download_policy">always</string>
</resources>

View file

@ -11,7 +11,7 @@
app:icon="@drawable/ic_image" />
<code.name.monkey.appthemehelper.common.prefs.supportv7.ATEListPreference
android:defaultValue="always"
android:defaultValue="@string/download_policy"
android:entries="@array/pref_auto_download_images_titles"
android:entryValues="@array/pref_auto_download_images_values"
android:key="auto_download_images_policy"