Skip to content

Commit 9a532f9

Browse files
Version 5.1.6-beta1.
1 parent aaa3e91 commit 9a532f9

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ android {
77
minSdkVersion 21
88
targetSdkVersion 30
99
versionCode 89
10-
versionName "5.1.5"
10+
versionName "5.1.6-beta1"
1111
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1212
javaCompileOptions {
1313
annotationProcessorOptions {

app/src/main/java/ml/docilealligator/infinityforreddit/settings/FontPreferenceFragment.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
import androidx.annotation.Nullable;
1313
import androidx.core.app.ActivityCompat;
14-
import androidx.documentfile.provider.DocumentFile;
1514
import androidx.preference.ListPreference;
1615
import androidx.preference.Preference;
1716

@@ -196,7 +195,6 @@ private void copyFontToInternalStorage(Uri uri, int type) {
196195

197196
executor.execute(() -> {
198197
File destinationFontFile = new File(fontDestinationPath, destinationFontName);
199-
DocumentFile documentFile = DocumentFile.fromSingleUri(activity, uri);
200198
try (InputStream in = activity.getContentResolver().openInputStream(uri);
201199
OutputStream out = new FileOutputStream(destinationFontFile)) {
202200
if (in != null) {
@@ -226,22 +224,6 @@ private void copyFontToInternalStorage(Uri uri, int type) {
226224
return;
227225
}
228226
handler.post(() -> {
229-
switch (type) {
230-
case 1:
231-
if (customTitleFontFamilyPreference != null) {
232-
customTitleFontFamilyPreference.setSummary(uri.toString());
233-
}
234-
break;
235-
case 2:
236-
if (customContentFontFamilyPreference != null) {
237-
customContentFontFamilyPreference.setSummary(uri.toString());
238-
}
239-
break;
240-
default:
241-
if (customFontFamilyPreference != null) {
242-
customFontFamilyPreference.setSummary(uri.toString());
243-
}
244-
}
245227
EventBus.getDefault().post(new RecreateActivityEvent());
246228
ActivityCompat.recreate(activity);
247229
});

0 commit comments

Comments
 (0)