mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-25 21:55:25 +01:00
ktlintformat
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
0a107c455f
commit
17f4a20cbd
@ -164,7 +164,6 @@ class MainActivity : BaseActivity(), ActionBarProvider {
|
||||
}
|
||||
|
||||
private fun handleActionFromContact(intent: Intent) {
|
||||
|
||||
if (intent.action == Intent.ACTION_VIEW && intent.data != null) {
|
||||
val cursor = contentResolver.query(intent.data!!, null, null, null, null)
|
||||
|
||||
|
@ -34,5 +34,4 @@ interface UserCirclesOrGroupsDao {
|
||||
|
||||
@Query("DELETE FROM user_circles")
|
||||
suspend fun deleteAllUserCircles()
|
||||
|
||||
}
|
||||
|
@ -15,5 +15,5 @@ import androidx.room.PrimaryKey
|
||||
data class UserCirclesEntity(
|
||||
@PrimaryKey
|
||||
@ColumnInfo(name = "displayName")
|
||||
var displayName: String,
|
||||
var displayName: String
|
||||
)
|
||||
|
@ -24,7 +24,10 @@ class UserGroupsCirclesRepository @Inject constructor(
|
||||
private val currentUserProvider: CurrentUserProviderNew
|
||||
) {
|
||||
val user = currentUserProvider.currentUser.blockingGet()
|
||||
suspend fun initialize(): Boolean = withContext(Dispatchers.IO) {
|
||||
|
||||
@Suppress("Detekt.TooGenericExceptionCaught")
|
||||
suspend fun initialize(): Boolean =
|
||||
withContext(Dispatchers.IO) {
|
||||
try {
|
||||
val credentials: String = ApiUtils.getCredentials(user.username, user.token)!!
|
||||
|
||||
@ -68,7 +71,6 @@ class UserGroupsCirclesRepository @Inject constructor(
|
||||
Log.e("UserDataRepo", "Error initializing user data", e)
|
||||
return@withContext false
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
fun getUserGroups(): List<UserGroupsEntity> {
|
||||
|
@ -14,5 +14,5 @@ import androidx.room.PrimaryKey
|
||||
@Entity(tableName = "user_groups")
|
||||
data class UserGroupsEntity(
|
||||
@PrimaryKey
|
||||
@ColumnInfo (name="groups") var groups: String,
|
||||
@ColumnInfo(name = "groups") var groups: String
|
||||
)
|
||||
|
@ -98,7 +98,7 @@ class MessageUtils(val context: Context) {
|
||||
return processedMessageText
|
||||
}
|
||||
|
||||
@Suppress("NestedBlockDepth", "LongParameterList")
|
||||
@Suppress("NestedBlockDepth", "LongParameterList", "Detekt.LongMethod")
|
||||
private fun processMessageParameters(
|
||||
themingContext: Context,
|
||||
viewThemeUtils: ViewThemeUtils,
|
||||
|
Loading…
Reference in New Issue
Block a user