Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/news-android.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/SettingsFragment.java')
-rw-r--r--News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/SettingsFragment.java28
1 files changed, 5 insertions, 23 deletions
diff --git a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/SettingsFragment.java b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/SettingsFragment.java
index aaab8c9e..4e440deb 100644
--- a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/SettingsFragment.java
+++ b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/SettingsFragment.java
@@ -11,8 +11,8 @@ import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.AsyncTask;
+import android.os.Build;
import android.os.Bundle;
-import android.provider.Settings;
import android.widget.Toast;
import androidx.appcompat.app.AlertDialog;
@@ -210,24 +210,6 @@ public class SettingsFragment extends PreferenceFragmentCompat {
return result;
}
- if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
- // If we're running pre-L, we need to 'inject' our tint aware Views in place of the
- // standard framework versions
- switch (name) {
- case "EditText":
- return new AppCompatEditText(this, attrs);
- case "Spinner":
- return new AppCompatSpinner(this, attrs);
- case "CheckBox":
- return new AppCompatCheckBox(this, attrs);
- case "RadioButton":
- return new AppCompatRadioButton(this, attrs);
- case "CheckedTextView":
- return new AppCompatCheckedTextView(this, attrs);
- default:
- Log.v(TAG, "Error. Didn't find view of type: " + name);
- }
- }
return null;
}
*/
@@ -364,10 +346,10 @@ public class SettingsFragment extends PreferenceFragmentCompat {
debugInfo += "\n\n---\n";
- debugInfo += "\nOS Version: " + System.getProperty("os.version") + "(" + android.os.Build.VERSION.INCREMENTAL + ")";
- debugInfo += "\nOS API Level: " + android.os.Build.VERSION.SDK_INT;
- debugInfo += "\nDevice: " + android.os.Build.DEVICE;
- debugInfo += "\nModel (and Product): " + android.os.Build.MODEL + " ("+ android.os.Build.PRODUCT + ")";
+ debugInfo += "\nOS Version: " + System.getProperty("os.version") + "(" + Build.VERSION.INCREMENTAL + ")";
+ debugInfo += "\nOS API Level: " + Build.VERSION.SDK_INT;
+ debugInfo += "\nDevice: " + Build.DEVICE;
+ debugInfo += "\nModel (and Product): " + Build.MODEL + " ("+ Build.PRODUCT + ")";
debugInfo += "\n\n---\n\n";