mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-26 06:05:42 +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) {
|
private fun handleActionFromContact(intent: Intent) {
|
||||||
|
|
||||||
if (intent.action == Intent.ACTION_VIEW && intent.data != null) {
|
if (intent.action == Intent.ACTION_VIEW && intent.data != null) {
|
||||||
val cursor = contentResolver.query(intent.data!!, null, null, null, null)
|
val cursor = contentResolver.query(intent.data!!, null, null, null, null)
|
||||||
|
|
||||||
|
@ -34,5 +34,4 @@ interface UserCirclesOrGroupsDao {
|
|||||||
|
|
||||||
@Query("DELETE FROM user_circles")
|
@Query("DELETE FROM user_circles")
|
||||||
suspend fun deleteAllUserCircles()
|
suspend fun deleteAllUserCircles()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -15,5 +15,5 @@ import androidx.room.PrimaryKey
|
|||||||
data class UserCirclesEntity(
|
data class UserCirclesEntity(
|
||||||
@PrimaryKey
|
@PrimaryKey
|
||||||
@ColumnInfo(name = "displayName")
|
@ColumnInfo(name = "displayName")
|
||||||
var displayName: String,
|
var displayName: String
|
||||||
)
|
)
|
||||||
|
@ -24,7 +24,10 @@ class UserGroupsCirclesRepository @Inject constructor(
|
|||||||
private val currentUserProvider: CurrentUserProviderNew
|
private val currentUserProvider: CurrentUserProviderNew
|
||||||
) {
|
) {
|
||||||
val user = currentUserProvider.currentUser.blockingGet()
|
val user = currentUserProvider.currentUser.blockingGet()
|
||||||
suspend fun initialize(): Boolean = withContext(Dispatchers.IO) {
|
|
||||||
|
@Suppress("Detekt.TooGenericExceptionCaught")
|
||||||
|
suspend fun initialize(): Boolean =
|
||||||
|
withContext(Dispatchers.IO) {
|
||||||
try {
|
try {
|
||||||
val credentials: String = ApiUtils.getCredentials(user.username, user.token)!!
|
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)
|
Log.e("UserDataRepo", "Error initializing user data", e)
|
||||||
return@withContext false
|
return@withContext false
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getUserGroups(): List<UserGroupsEntity> {
|
fun getUserGroups(): List<UserGroupsEntity> {
|
||||||
|
@ -14,5 +14,5 @@ import androidx.room.PrimaryKey
|
|||||||
@Entity(tableName = "user_groups")
|
@Entity(tableName = "user_groups")
|
||||||
data class UserGroupsEntity(
|
data class UserGroupsEntity(
|
||||||
@PrimaryKey
|
@PrimaryKey
|
||||||
@ColumnInfo (name="groups") var groups: String,
|
@ColumnInfo(name = "groups") var groups: String
|
||||||
)
|
)
|
||||||
|
@ -98,7 +98,7 @@ class MessageUtils(val context: Context) {
|
|||||||
return processedMessageText
|
return processedMessageText
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("NestedBlockDepth", "LongParameterList")
|
@Suppress("NestedBlockDepth", "LongParameterList", "Detekt.LongMethod")
|
||||||
private fun processMessageParameters(
|
private fun processMessageParameters(
|
||||||
themingContext: Context,
|
themingContext: Context,
|
||||||
viewThemeUtils: ViewThemeUtils,
|
viewThemeUtils: ViewThemeUtils,
|
||||||
|
Loading…
Reference in New Issue
Block a user