mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-28 11:58:23 +01:00
Version 5.1.6-beta1.
This commit is contained in:
parent
aaa3e91b82
commit
94f08d616a
@ -6,8 +6,8 @@ android {
|
||||
applicationId "ml.docilealligator.infinityforreddit"
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 30
|
||||
versionCode 89
|
||||
versionName "5.1.5"
|
||||
versionCode 90
|
||||
versionName "5.1.6-beta1"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
javaCompileOptions {
|
||||
annotationProcessorOptions {
|
||||
|
@ -11,7 +11,6 @@ import android.widget.Toast;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.core.app.ActivityCompat;
|
||||
import androidx.documentfile.provider.DocumentFile;
|
||||
import androidx.preference.ListPreference;
|
||||
import androidx.preference.Preference;
|
||||
|
||||
@ -196,7 +195,6 @@ public class FontPreferenceFragment extends CustomFontPreferenceFragmentCompat {
|
||||
|
||||
executor.execute(() -> {
|
||||
File destinationFontFile = new File(fontDestinationPath, destinationFontName);
|
||||
DocumentFile documentFile = DocumentFile.fromSingleUri(activity, uri);
|
||||
try (InputStream in = activity.getContentResolver().openInputStream(uri);
|
||||
OutputStream out = new FileOutputStream(destinationFontFile)) {
|
||||
if (in != null) {
|
||||
@ -226,22 +224,6 @@ public class FontPreferenceFragment extends CustomFontPreferenceFragmentCompat {
|
||||
return;
|
||||
}
|
||||
handler.post(() -> {
|
||||
switch (type) {
|
||||
case 1:
|
||||
if (customTitleFontFamilyPreference != null) {
|
||||
customTitleFontFamilyPreference.setSummary(uri.toString());
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
if (customContentFontFamilyPreference != null) {
|
||||
customContentFontFamilyPreference.setSummary(uri.toString());
|
||||
}
|
||||
break;
|
||||
default:
|
||||
if (customFontFamilyPreference != null) {
|
||||
customFontFamilyPreference.setSummary(uri.toString());
|
||||
}
|
||||
}
|
||||
EventBus.getDefault().post(new RecreateActivityEvent());
|
||||
ActivityCompat.recreate(activity);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user