Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,8 @@ dependencies {

implementation 'androidx.core:core-ktx:1.17.0'
implementation 'androidx.activity:activity-ktx:1.12.2'
implementation 'com.github.nextcloud.android-common:ui:0.31.0'
implementation 'com.github.nextcloud.android-common:ui:0.33.0'
implementation 'com.github.nextcloud.android-common:core:0.33.0'
implementation 'com.github.nextcloud-deps:android-talk-webrtc:132.6834.0'

gplayImplementation 'com.google.android.gms:play-services-base:18.10.0'
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

<intent-filter>
<action android:name="com.nextcloud.intent.OPEN_ECOSYSTEM_APP" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>

<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
Expand Down
1 change: 1 addition & 0 deletions app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4292,6 +4292,7 @@ class ChatActivity :
}
}

@Suppress("Detekt.TooGenericExceptionCaught")
private fun shareToNotes(
shareUri: Uri?,
roomToken: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -756,10 +756,15 @@ class ConversationsListActivity :
}

private fun showChooseAccountDialog() {
val brandedClient = getResources().getBoolean(R.bool.is_branded_client)
binding.genericComposeView.apply {
val shouldDismiss = mutableStateOf(false)
setContent {
ChooseAccountDialogCompose().GetChooseAccountDialog(shouldDismiss, this@ConversationsListActivity)
ChooseAccountDialogCompose().GetChooseAccountDialog(
shouldDismiss,
this@ConversationsListActivity,
appPreferences.isShowEcosystem && !brandedClient
)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ class ConversationsListViewModel @Inject constructor(
return differenceMillis > checkIntervalInMillies
}

@Suppress("Detekt.TooGenericExceptionCaught")
fun checkIfFollowedThreadsExist() {
val threadsUrl = ApiUtils.getUrlForSubscribedThreads(
version = 1,
Expand Down
21 changes: 21 additions & 0 deletions app/src/main/java/com/nextcloud/talk/settings/SettingsActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ class SettingsActivity :
}

setupCheckables(isOnline.value)
setupEcosystemSetting()
setupScreenLockSetting()
setupNotificationSettings()
setupProxyTypeSettings()
Expand Down Expand Up @@ -252,6 +253,14 @@ class SettingsActivity :
}
}

private fun setupEcosystemSetting() {
if (getResources().getBoolean(R.bool.is_branded_client)) {
binding.settingsShowEcosystem.visibility = View.GONE
} else {
binding.settingsShowEcosystem.visibility = View.VISIBLE
}
}

@Suppress("MagicNumber")
private fun scrollToNotificationCategory() {
binding.scrollView.post {
Expand Down Expand Up @@ -771,6 +780,7 @@ class SettingsActivity :
private fun themeSwitchPreferences() {
binding.run {
listOf(
settingsShowEcosystemSwitch,
settingsShowNotificationWarningSwitch,
settingsScreenLockSwitch,
settingsScreenSecuritySwitch,
Expand Down Expand Up @@ -967,6 +977,8 @@ class SettingsActivity :
}

private fun setupCheckables(isOnline: Boolean) {
setupShowEcosystemCheckable()

binding.settingsShowNotificationWarningSwitch.isChecked =
appPreferences.showRegularNotificationWarning

Expand Down Expand Up @@ -1031,6 +1043,15 @@ class SettingsActivity :
}
}

private fun setupShowEcosystemCheckable() {
binding.settingsShowEcosystemSwitch.isChecked = appPreferences.isShowEcosystem
binding.settingsShowEcosystem.setOnClickListener {
val isChecked = binding.settingsShowEcosystemSwitch.isChecked
binding.settingsShowEcosystemSwitch.isChecked = !isChecked
appPreferences.setShowEcosystem(!isChecked)
}
}

private fun setupPhoneBookIntegrationSetting() {
binding.settingsPhoneBookIntegrationSwitch.isChecked = appPreferences.isPhoneBookIntegrationEnabled
binding.settingsPhoneBookIntegration.setOnClickListener {
Expand Down
Loading
Loading