minor fix for tablet Android

This commit is contained in:
OmarHatem 2025-02-22 03:06:30 +02:00
parent 2c856383a7
commit 37555a8320
3 changed files with 7 additions and 17 deletions

View file

@ -20,7 +20,7 @@ class DesktopSettingsPage extends StatefulWidget {
}
class _DesktopSettingsPageState extends State<DesktopSettingsPage> {
final int itemCount = SettingActions.desktopSettings.length;
final int itemCount = SettingActions.all.length;
int? currentPage;
@ -54,7 +54,7 @@ class _DesktopSettingsPageState extends State<DesktopSettingsPage> {
child: ListView.separated(
padding: EdgeInsets.only(top: 0),
itemBuilder: (_, index) {
final item = SettingActions.desktopSettings[index];
final item = SettingActions.all[index];
if (!widget.dashboardViewModel.hasSilentPayments &&
item.name(context) == S.of(context).silent_payments_settings) {

View file

@ -1,3 +1,5 @@
import 'dart:io';
import 'package:cake_wallet/generated/i18n.dart';
import 'package:cake_wallet/routes.dart';
import 'package:flutter/material.dart';
@ -20,20 +22,8 @@ class SettingActions {
walletSettingAction,
addressBookSettingAction,
silentPaymentsSettingAction,
litecoinMwebSettingAction,
exportOutputsAction,
securityBackupSettingAction,
privacySettingAction,
displaySettingAction,
otherSettingAction,
supportSettingAction,
];
static List<SettingActions> desktopSettings = [
connectionSettingAction,
walletSettingAction,
addressBookSettingAction,
silentPaymentsSettingAction,
if (Platform.isIOS || Platform.isAndroid) litecoinMwebSettingAction,
if (Platform.isIOS || Platform.isAndroid) exportOutputsAction,
securityBackupSettingAction,
privacySettingAction,
displaySettingAction,

View file

@ -19,7 +19,7 @@ MONERO_COM_BUNDLE_ID="com.cakewallet.monero"
CAKEWALLET_NAME="Cake Wallet"
CAKEWALLET_VERSION="4.23.2"
CAKEWALLET_BUILD_NUMBER=296
CAKEWALLET_BUILD_NUMBER=298
CAKEWALLET_BUNDLE_ID="com.fotolockr.cakewallet"
HAVEN_NAME="Haven"