mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-31 06:05:12 +00:00
Rollback android-device-names to 1.x
Was bumped in f2f1930cec
but it was crashing
with "database disk image is malformed" and not returning a human name
This commit is contained in:
@@ -153,7 +153,7 @@ dependencies {
|
|||||||
implementation 'androidx.gridlayout:gridlayout:1.0.0'
|
implementation 'androidx.gridlayout:gridlayout:1.0.0'
|
||||||
implementation 'com.google.android.material:material:1.8.0'
|
implementation 'com.google.android.material:material:1.8.0'
|
||||||
implementation 'com.jakewharton:disklrucache:2.0.2' //For caching album art bitmaps
|
implementation 'com.jakewharton:disklrucache:2.0.2' //For caching album art bitmaps
|
||||||
implementation 'com.jaredrummler:android-device-names:2.1.1' //To get a human-friendly device name
|
implementation 'com.jaredrummler:android-device-names:1.1.9' //To get a human-friendly device name
|
||||||
|
|
||||||
implementation 'org.apache.sshd:sshd-core:0.14.0'
|
implementation 'org.apache.sshd:sshd-core:0.14.0'
|
||||||
implementation 'org.apache.mina:mina-core:2.0.19' //For some reason, makes sshd-core:0.14.0 work without NIO, which isn't available until Android 8 (api 26)
|
implementation 'org.apache.mina:mina-core:2.0.19' //For some reason, makes sshd-core:0.14.0 work without NIO, which isn't available until Android 8 (api 26)
|
||||||
|
@@ -53,6 +53,7 @@ public class DeviceHelper {
|
|||||||
// Could use preferences.contains but would need to check for empty String anyway.
|
// Could use preferences.contains but would need to check for empty String anyway.
|
||||||
String deviceName = preferences.getString(KEY_DEVICE_NAME_PREFERENCE, "");
|
String deviceName = preferences.getString(KEY_DEVICE_NAME_PREFERENCE, "");
|
||||||
if (deviceName.isEmpty()) {
|
if (deviceName.isEmpty()) {
|
||||||
|
//DeviceName.init(context); // Needed in DeviceName 2.x +
|
||||||
if (!fetchingName) {
|
if (!fetchingName) {
|
||||||
fetchingName = true;
|
fetchingName = true;
|
||||||
DeviceHelper.backgroundFetchDeviceName(context); //Starts a background thread that will eventually update the shared pref
|
DeviceHelper.backgroundFetchDeviceName(context); //Starts a background thread that will eventually update the shared pref
|
||||||
|
Reference in New Issue
Block a user