Disable artist image downloading on fdroid flavor by default
This commit is contained in:
parent
01c5c10def
commit
778025e989
5 changed files with 9 additions and 7 deletions
4
app/src/fdroid/res/values/donottranslate.xml
Normal file
4
app/src/fdroid/res/values/donottranslate.xml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<string name="download_policy">never</string>
|
||||||
|
</resources>
|
|
@ -90,7 +90,6 @@ class ContributorAdapter(
|
||||||
.load("file:///android_asset/images/${contributor.image}".toUri())
|
.load("file:///android_asset/images/${contributor.image}".toUri())
|
||||||
.error(R.drawable.ic_account)
|
.error(R.drawable.ic_account)
|
||||||
.placeholder(R.drawable.ic_account)
|
.placeholder(R.drawable.ic_account)
|
||||||
.dontAnimate()
|
|
||||||
.into(image)
|
.into(image)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -431,7 +431,7 @@ public class LrcView extends View {
|
||||||
|
|
||||||
mTimePaint.setColor(mTimeTextColor);
|
mTimePaint.setColor(mTimeTextColor);
|
||||||
String timeText = LrcUtils.formatTime(mLrcEntryList.get(centerLine).getTime());
|
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;
|
float timeY = centerY - (mTimeFontMetrics.descent + mTimeFontMetrics.ascent) / 2;
|
||||||
canvas.drawText(timeText, timeX, timeY, mTimePaint);
|
canvas.drawText(timeText, timeX, timeY, mTimePaint);
|
||||||
}
|
}
|
||||||
|
@ -531,7 +531,7 @@ public class LrcView extends View {
|
||||||
lrcEntry.init(mLrcPaint, (int) getLrcWidth(), mTextGravity);
|
lrcEntry.init(mLrcPaint, (int) getLrcWidth(), mTextGravity);
|
||||||
}
|
}
|
||||||
|
|
||||||
mOffset = getHeight() / 2;
|
mOffset = getHeight() / 2F;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void reset() {
|
private void reset() {
|
||||||
|
@ -611,7 +611,7 @@ public class LrcView extends View {
|
||||||
|
|
||||||
private float getOffset(int line) {
|
private float getOffset(int line) {
|
||||||
if (mLrcEntryList.get(line).getOffset() == Float.MIN_VALUE) {
|
if (mLrcEntryList.get(line).getOffset() == Float.MIN_VALUE) {
|
||||||
float offset = getHeight() / 2;
|
float offset = getHeight() / 2F;
|
||||||
for (int i = 1; i <= line; i++) {
|
for (int i = 1; i <= line; i++) {
|
||||||
offset -=
|
offset -=
|
||||||
((mLrcEntryList.get(i - 1).getHeight() + mLrcEntryList.get(i).getHeight()) >> 1)
|
((mLrcEntryList.get(i - 1).getHeight() + mLrcEntryList.get(i).getHeight()) >> 1)
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
<string name="app_name" translatable="false">Retro Music</string>
|
<string name="app_name" translatable="false">Retro Music</string>
|
||||||
<string name="git_hub" translatable="false">GitHub</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_long" translatable="false">@string/last_added</string>
|
||||||
<string name="app_shortcut_last_added_short" 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>
|
<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="sort_order_album_artist">@string/album_artist</string>
|
||||||
<string name="app_widget_circle_name">@string/circle</string>
|
<string name="app_widget_circle_name">@string/circle</string>
|
||||||
|
|
||||||
|
<string name="download_policy">always</string>
|
||||||
</resources>
|
</resources>
|
|
@ -11,7 +11,7 @@
|
||||||
app:icon="@drawable/ic_image" />
|
app:icon="@drawable/ic_image" />
|
||||||
|
|
||||||
<code.name.monkey.appthemehelper.common.prefs.supportv7.ATEListPreference
|
<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:entries="@array/pref_auto_download_images_titles"
|
||||||
android:entryValues="@array/pref_auto_download_images_values"
|
android:entryValues="@array/pref_auto_download_images_values"
|
||||||
android:key="auto_download_images_policy"
|
android:key="auto_download_images_policy"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue