2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 21:55:10 +00:00

Make linter happy

This commit is contained in:
Albert Vaca Cintora
2023-05-29 03:10:06 +02:00
parent 3a05548333
commit ad53138928
3 changed files with 2 additions and 3 deletions

View File

@@ -19,8 +19,7 @@ class ClipboardTileService : TileService() {
startActivityAndCollapse(Intent(this, ClipboardFloatingActivity::class.java).apply {
flags = Intent.FLAG_ACTIVITY_CLEAR_TASK or Intent.FLAG_ACTIVITY_NEW_TASK
var ids : List<String> = emptyList()
ids = KdeConnect.getInstance().devices.values
val ids = KdeConnect.getInstance().devices.values
.filter { it.isReachable && it.isPaired }
.map { it.deviceId }
putExtra("connectedDeviceIds", ArrayList(ids))

View File

@@ -259,7 +259,7 @@ class MainActivity : AppCompatActivity(), OnSharedPreferenceChangeListener {
override fun onStart() {
super.onStart()
BackgroundService.Start(applicationContext);
BackgroundService.Start(applicationContext)
KdeConnect.getInstance().addDeviceListChangedCallback(this::class.simpleName) { runOnUiThread { updateDeviceList() } }
updateDeviceList()
onBackPressedDispatcher.addCallback(mainFragmentCallback)