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:
@@ -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))
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user