mirror of
https://github.com/lone-cloud/prism-android
synced 2026-06-03 11:03:10 -07:00
fix lint
This commit is contained in:
parent
3bf7227a55
commit
e5aa27ca0e
3 changed files with 4 additions and 5 deletions
|
|
@ -45,7 +45,7 @@ object Distributor : UnifiedPushDistributor() {
|
|||
val appName = app.title ?: app.packageName
|
||||
PrismServerClient.deleteApp(context, appName)
|
||||
}
|
||||
|
||||
|
||||
MessageSender.send(
|
||||
context,
|
||||
ClientMessage.Unregister(
|
||||
|
|
|
|||
|
|
@ -87,16 +87,16 @@ class MainViewModel(
|
|||
val selectedTokens = registrationsViewModel.state.list
|
||||
.filter { it.selected }
|
||||
.map { it.token }
|
||||
|
||||
|
||||
Log.d(TAG, "Deleting ${selectedTokens.size} apps: $selectedTokens")
|
||||
|
||||
|
||||
selectedTokens.forEach { token ->
|
||||
val intent = android.content.Intent("org.unifiedpush.android.distributor.UNREGISTER")
|
||||
intent.setPackage(app.packageName)
|
||||
intent.putExtra("token", token)
|
||||
app.sendBroadcast(intent)
|
||||
}
|
||||
|
||||
|
||||
registrationsViewModel.unselectAll()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ import androidx.core.graphics.drawable.toBitmap
|
|||
import app.lonecloud.prism.AppStore
|
||||
import app.lonecloud.prism.DatabaseFactory
|
||||
import app.lonecloud.prism.Distributor
|
||||
import app.lonecloud.prism.PrismServerClient
|
||||
import org.unifiedpush.android.distributor.Database
|
||||
import org.unifiedpush.android.distributor.MigrationManager
|
||||
import org.unifiedpush.android.distributor.SourceManager
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue