From e042c6a2922f301fecdfc0e27f0e4c554e989449 Mon Sep 17 00:00:00 2001 From: Hasib Prince Date: Mon, 23 May 2022 12:13:31 +0600 Subject: [PATCH 1/2] App Lounge: fixed show more ui in app item --- .../model/ApplicationListRVAdapter.kt | 4 ++-- app/src/main/res/layout/application_list_item.xml | 15 ++++++++++----- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/foundation/e/apps/applicationlist/model/ApplicationListRVAdapter.kt b/app/src/main/java/foundation/e/apps/applicationlist/model/ApplicationListRVAdapter.kt index 0f798fd8e..f610b5c31 100644 --- a/app/src/main/java/foundation/e/apps/applicationlist/model/ApplicationListRVAdapter.kt +++ b/app/src/main/java/foundation/e/apps/applicationlist/model/ApplicationListRVAdapter.kt @@ -186,7 +186,7 @@ class ApplicationListRVAdapter( holder: ViewHolder ) { installButton.visibility = View.VISIBLE - showMore.visibility = View.GONE + showMore.visibility = View.INVISIBLE when (searchApp.status) { Status.INSTALLED -> { handleInstalled(view, searchApp) @@ -213,7 +213,7 @@ class ApplicationListRVAdapter( } private fun ApplicationListItemBinding.setupShowMoreButton() { - installButton.visibility = View.GONE + installButton.visibility = View.INVISIBLE showMore.visibility = View.VISIBLE } diff --git a/app/src/main/res/layout/application_list_item.xml b/app/src/main/res/layout/application_list_item.xml index a9d60a107..921a9273f 100644 --- a/app/src/main/res/layout/application_list_item.xml +++ b/app/src/main/res/layout/application_list_item.xml @@ -60,7 +60,7 @@ app:layout_constraintLeft_toRightOf="@+id/app_icon_card" app:layout_constraintRight_toLeftOf="@+id/installButton" app:layout_constraintTop_toTopOf="@+id/app_icon_card" - tools:text="App title" /> + tools:text="Google Chrome - Fast and Secured" /> -- GitLab From 56c8cabd445ffcebeb3f4b719b051d2f9d053597 Mon Sep 17 00:00:00 2001 From: Hasib Prince Date: Mon, 23 May 2022 12:43:51 +0600 Subject: [PATCH 2/2] App Lounge:code cleaning for Ktlint issues --- app/src/main/java/foundation/e/apps/MainActivityViewModel.kt | 2 +- .../java/foundation/e/apps/api/ecloud/EcloudApiInterface.kt | 3 +-- .../main/java/foundation/e/apps/api/ecloud/EcloudRepository.kt | 2 +- .../java/foundation/e/apps/api/ecloud/modules/FaultyToken.kt | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/foundation/e/apps/MainActivityViewModel.kt b/app/src/main/java/foundation/e/apps/MainActivityViewModel.kt index 82d0ebd57..48ed8ce2f 100644 --- a/app/src/main/java/foundation/e/apps/MainActivityViewModel.kt +++ b/app/src/main/java/foundation/e/apps/MainActivityViewModel.kt @@ -233,7 +233,7 @@ class MainActivityViewModel @Inject constructor( authValidity.postValue(false) } - fun uploadFaultyTokenToEcloud(description: String){ + fun uploadFaultyTokenToEcloud(description: String) { viewModelScope.launch { authData.value?.let { authData -> val email: String = authData.run { diff --git a/app/src/main/java/foundation/e/apps/api/ecloud/EcloudApiInterface.kt b/app/src/main/java/foundation/e/apps/api/ecloud/EcloudApiInterface.kt index 9b02ef35c..763298e40 100644 --- a/app/src/main/java/foundation/e/apps/api/ecloud/EcloudApiInterface.kt +++ b/app/src/main/java/foundation/e/apps/api/ecloud/EcloudApiInterface.kt @@ -33,5 +33,4 @@ interface EcloudApiInterface { @Body faultyToken: FaultyToken, @Header("Content-Type") contentType: String = "application/json", ) - -} \ No newline at end of file +} diff --git a/app/src/main/java/foundation/e/apps/api/ecloud/EcloudRepository.kt b/app/src/main/java/foundation/e/apps/api/ecloud/EcloudRepository.kt index a0dbd939e..27fb20699 100644 --- a/app/src/main/java/foundation/e/apps/api/ecloud/EcloudRepository.kt +++ b/app/src/main/java/foundation/e/apps/api/ecloud/EcloudRepository.kt @@ -34,4 +34,4 @@ class EcloudRepository @Inject constructor( e.printStackTrace() } } -} \ No newline at end of file +} diff --git a/app/src/main/java/foundation/e/apps/api/ecloud/modules/FaultyToken.kt b/app/src/main/java/foundation/e/apps/api/ecloud/modules/FaultyToken.kt index 9e1efa0ec..29f596bfd 100644 --- a/app/src/main/java/foundation/e/apps/api/ecloud/modules/FaultyToken.kt +++ b/app/src/main/java/foundation/e/apps/api/ecloud/modules/FaultyToken.kt @@ -17,4 +17,4 @@ package foundation.e.apps.api.ecloud.modules -data class FaultyToken(val email: String, val description: String) \ No newline at end of file +data class FaultyToken(val email: String, val description: String) -- GitLab