Fixed issue in permissions layout in landscape + post_notifications permission not granted alert when it was in fact granted

This commit is contained in:
Sylvain Berfini 2024-07-18 09:50:51 +02:00
parent 8ce91d1300
commit a73e483478
3 changed files with 4 additions and 4 deletions

View file

@ -344,6 +344,7 @@ class MainActivity : GenericActivity() {
viewModel.checkForNewAccount()
viewModel.updateNetworkReachability()
viewModel.updatePostNotificationsPermission()
}
override fun onNewIntent(intent: Intent) {

View file

@ -283,9 +283,7 @@ class MainViewModel @UiThread constructor() : ViewModel() {
addAlert(NETWORK_NOT_REACHABLE, label)
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
checkPostNotificationsPermission()
}
updatePostNotificationsPermission()
if (core.callsNb > 0) {
updateCallAlert()

View file

@ -216,11 +216,12 @@
android:layout_marginTop="32dp"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="@dimen/screen_bottom_margin"
android:layout_marginBottom="20dp"
android:paddingStart="20dp"
android:paddingEnd="20dp"
android:text="@string/assistant_permissions_skip_permissions"
app:layout_constraintWidth_max="@dimen/button_max_width"
app:layout_constraintVertical_bias="1"
app:layout_constraintTop_toBottomOf="@id/access_camera_title"
app:layout_constraintBottom_toTopOf="@id/grant_all_permissions"
app:layout_constraintStart_toStartOf="parent"