version fix

This commit is contained in:
MooN 2025-11-23 18:45:49 +06:30
parent d8befb7f2a
commit ab4801d687
5 changed files with 410 additions and 388 deletions

View File

@ -144,35 +144,34 @@ public class SettingsFragment extends DataBindingFragment {
private void updateDemoSettings() { private void updateDemoSettings() {
boolean isDemo = SystemParamsOperation.getInstance().getDemoStatus(); boolean isDemo = SystemParamsOperation.getInstance().getDemoStatus();
binding.demoSwitch.setChecked(isDemo); // binding.demoSwitch.setChecked(isDemo);
binding.demoSummary.setText(isDemo ? // binding.demoSummary.setText(isDemo ?
"Demo mode active - Test transactions without real processing" : // "Demo mode active - Test transactions without real processing" :
"Simulator mode active - Real transaction processing"); // "Simulator mode active - Real transaction processing");
} }
private void updateAlertSoundSettings() { private void updateAlertSoundSettings() {
boolean isEnabled = SystemParamsOperation.getInstance().isAlertSound(); boolean isEnabled = SystemParamsOperation.getInstance().isAlertSound();
binding.alertSoundSwitch.setChecked(isEnabled); // binding.alertSoundSwitch.setChecked(isEnabled);
binding.alertSoundSummary.setText(isEnabled ? // binding.alertSoundSummary.setText(isEnabled ?
"Sound alerts enabled for notifications" : // "Sound alerts enabled for notifications" :
"Sound alerts disabled - Silent mode"); // "Sound alerts disabled - Silent mode");
} }
private void updateReversalSettings() { private void updateReversalSettings() {
boolean isEnabled = SystemParamsOperation.getInstance().isReversalOn(); boolean isEnabled = SystemParamsOperation.getInstance().isReversalOn();
binding.reversalSwitch.setChecked(isEnabled); // binding.reversalSwitch.setChecked(isEnabled);
binding.reversalSummary.setText(isEnabled ? // binding.reversalSummary.setText(isEnabled ?
"Automatic reversal enabled for failed transactions" : // "Automatic reversal enabled for failed transactions" :
"Automatic reversal disabled - Manual reversal only"); // "Automatic reversal disabled - Manual reversal only");
} }
private void updateMultiHostSettings() { private void updateMultiHostSettings() {
boolean isEnabled = SystemParamsOperation.getInstance().isMultiHost(); boolean isEnabled = SystemParamsOperation.getInstance().isMultiHost();
binding.multiHostSwitch.setChecked(isEnabled); // binding.multiHostSwitch.setChecked(isEnabled);
binding.multiHostSummary.setText(isEnabled ? // binding.multiHostSummary.setText(isEnabled ?
"Multiple host support enabled" : // "Multiple host support enabled" :
"Single host mode - Primary host only"); // "Single host mode - Primary host only");
} }
private void updateTmsAddressSettings() { private void updateTmsAddressSettings() {

View File

@ -6,6 +6,8 @@ import android.view.View;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.annotation.Nullable; import androidx.annotation.Nullable;
import com.nexgo.oaf.apiv3.DeviceEngine;
import com.nexgo.oaf.apiv3.DeviceInfo;
import com.utsmyanmar.baselib.fragment.DataBindingFragment; import com.utsmyanmar.baselib.fragment.DataBindingFragment;
import com.utsmyanmar.baselib.util.DataBindingConfig; import com.utsmyanmar.baselib.util.DataBindingConfig;
import com.utsmm.kbz.BR; import com.utsmm.kbz.BR;
@ -32,6 +34,7 @@ public class VersionFragment extends DataBindingFragment {
setToolBarTitleWithBackIcon(getString(R.string.title_version)); setToolBarTitleWithBackIcon(getString(R.string.title_version));
fetchVersions(); fetchVersions();
versionViewModel.loadDeviceInfo(requireContext());
} }
@Override @Override
@ -75,5 +78,4 @@ public class VersionFragment extends DataBindingFragment {
} }

View File

@ -1,9 +1,13 @@
package com.utsmm.kbz.ui.navigation; package com.utsmm.kbz.ui.navigation;
import android.content.Context;
import android.os.RemoteException; import android.os.RemoteException;
import androidx.lifecycle.ViewModel; import androidx.lifecycle.ViewModel;
import com.nexgo.oaf.apiv3.APIProxy;
import com.nexgo.oaf.apiv3.DeviceEngine;
import com.nexgo.oaf.apiv3.DeviceInfo;
import com.sunmi.pay.hardware.aidl.AidlConstants; import com.sunmi.pay.hardware.aidl.AidlConstants;
import com.utsmyanmar.paylibs.system.SingleLiveEvent; import com.utsmyanmar.paylibs.system.SingleLiveEvent;
import com.utsmyanmar.paylibs.utils.core_utils.SystemParamsOperation; import com.utsmyanmar.paylibs.utils.core_utils.SystemParamsOperation;
@ -28,7 +32,8 @@ public class VersionViewModel extends ViewModel {
public VersionViewModel() { public VersionViewModel() {
initData(); // initData();
// loadDeviceInfo();
} }
private void initData() { private void initData() {
@ -55,5 +60,21 @@ public class VersionViewModel extends ViewModel {
return value; return value;
} }
public void loadDeviceInfo(Context context){
try{
DeviceEngine deviceEngine = APIProxy.getDeviceEngine(context);
DeviceInfo deviceInfo = deviceEngine.getDeviceInfo();
serialNumber.setValue(deviceInfo.getSn());
deviceModel.setValue(deviceInfo.getModel());
hardwareVersion.setValue(deviceInfo.getKernelVer());
firmwareVersion.setValue(deviceInfo.getFirmWareVer());
swFinalVersion.setValue(deviceInfo.getFirmWareFullVersion());
payHardwareVersion.setValue(deviceInfo.getSpCoreVersion());
romVersion.setValue(deviceInfo.getOsVer());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
} }

View File

@ -446,55 +446,55 @@
</androidx.cardview.widget.CardView> </androidx.cardview.widget.CardView>
<!-- Manual Reversal --> <!-- Manual Reversal -->
<androidx.cardview.widget.CardView <!-- <androidx.cardview.widget.CardView-->
android:layout_width="match_parent" <!-- android:layout_width="match_parent"-->
android:layout_height="wrap_content" <!-- android:layout_height="wrap_content"-->
android:layout_marginBottom="12dp" <!-- android:layout_marginBottom="12dp"-->
app:cardCornerRadius="12dp" <!-- app:cardCornerRadius="12dp"-->
app:cardElevation="0dp" <!-- app:cardElevation="0dp"-->
app:cardBackgroundColor="@color/white" <!-- app:cardBackgroundColor="@color/white"-->
android:clickable="true" <!-- android:clickable="true"-->
android:focusable="true" <!-- android:focusable="true"-->
android:foreground="?android:attr/selectableItemBackground" <!-- android:foreground="?android:attr/selectableItemBackground"-->
android:onClick="@{()->click.onClickManualReversal()}"> <!-- android:onClick="@{()->click.onClickManualReversal()}">-->
<LinearLayout <!-- <LinearLayout-->
android:layout_width="match_parent" <!-- android:layout_width="match_parent"-->
android:layout_height="wrap_content" <!-- android:layout_height="wrap_content"-->
android:layout_margin="2dp" <!-- android:layout_margin="2dp"-->
android:background="@drawable/bg_edittext_primary_border" <!-- android:background="@drawable/bg_edittext_primary_border"-->
android:orientation="horizontal" <!-- android:orientation="horizontal"-->
android:gravity="center_vertical" <!-- android:gravity="center_vertical"-->
android:padding="16dp"> <!-- android:padding="16dp">-->
<ImageView <!-- <ImageView-->
android:layout_width="20dp" <!-- android:layout_width="20dp"-->
android:layout_height="20dp" <!-- android:layout_height="20dp"-->
android:src="@drawable/ic_custom_pos" <!-- android:src="@drawable/ic_custom_pos"-->
app:tint="@color/colorPrimary" <!-- app:tint="@color/colorPrimary"-->
android:alpha="0.8" <!-- android:alpha="0.8"-->
android:layout_marginEnd="12dp" /> <!-- android:layout_marginEnd="12dp" />-->
<TextView <!-- <TextView-->
android:layout_width="0dp" <!-- android:layout_width="0dp"-->
android:layout_height="wrap_content" <!-- android:layout_height="wrap_content"-->
android:layout_weight="1" <!-- android:layout_weight="1"-->
android:text="@string/txt_subtitle_manual_reversal" <!-- android:text="@string/txt_subtitle_manual_reversal"-->
android:textColor="@color/colorPrimary" <!-- android:textColor="@color/colorPrimary"-->
android:textSize="15sp" <!-- android:textSize="15sp"-->
android:textStyle="normal" <!-- android:textStyle="normal"-->
android:fontFamily="sans-serif-medium" /> <!-- android:fontFamily="sans-serif-medium" />-->
<ImageView <!-- <ImageView-->
android:layout_width="16dp" <!-- android:layout_width="16dp"-->
android:layout_height="16dp" <!-- android:layout_height="16dp"-->
android:src="@drawable/ic_right_arrow" <!-- android:src="@drawable/ic_right_arrow"-->
app:tint="@color/colorPrimary" <!-- app:tint="@color/colorPrimary"-->
android:alpha="0.6" /> <!-- android:alpha="0.6" />-->
</LinearLayout> <!-- </LinearLayout>-->
</androidx.cardview.widget.CardView> <!-- </androidx.cardview.widget.CardView>-->
</LinearLayout> </LinearLayout>

View File

@ -316,189 +316,14 @@
<!-- </androidx.cardview.widget.CardView>--> <!-- </androidx.cardview.widget.CardView>-->
<!-- Demo Mode Card --> <!-- Demo Mode Card -->
<androidx.cardview.widget.CardView
android:id="@+id/demoCard"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="12dp"
android:clickable="true"
android:foreground="?android:attr/selectableItemBackground"
android:onClick="@{()->click.onDemoClick()}"
app:cardBackgroundColor="@color/white"
app:cardCornerRadius="16dp"
app:cardElevation="2dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
android:padding="20dp">
<androidx.cardview.widget.CardView
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_marginEnd="16dp"
app:cardBackgroundColor="@color/colorPrimary"
app:cardCornerRadius="24dp"
app:cardElevation="0dp">
<ImageView
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_gravity="center"
android:src="@drawable/ic_swap"
app:tint="@color/white" />
</androidx.cardview.widget.CardView>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/rubik_medium"
android:text="Demo Mode"
android:textColor="@color/colorTextTitle"
android:textSize="18sp"
android:textStyle="bold"
tools:fontFamily="sans-serif-medium" />
<TextView
android:id="@+id/demoSummary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:fontFamily="@font/rubik_regular"
android:text="Demo mode active - Test transactions"
android:textColor="@color/colorTextContent"
android:textSize="14sp"
tools:fontFamily="sans-serif" />
</LinearLayout>
<Switch
android:id="@+id/demoSwitch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:clickable="false"
android:focusable="false" />
</LinearLayout>
</androidx.cardview.widget.CardView>
<!-- Sound Alerts Card -->
<androidx.cardview.widget.CardView
android:id="@+id/alertSoundCard"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="12dp"
android:clickable="true"
android:foreground="?android:attr/selectableItemBackground"
android:onClick="@{()->click.onAlertSoundClick()}"
app:cardBackgroundColor="@color/white"
app:cardCornerRadius="16dp"
app:cardElevation="2dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
android:padding="20dp">
<androidx.cardview.widget.CardView
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_marginEnd="16dp"
app:cardBackgroundColor="@color/colorPrimary"
app:cardCornerRadius="24dp"
app:cardElevation="0dp">
<ImageView
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_gravity="center"
android:src="@drawable/ic_audio"
app:tint="@color/white" />
</androidx.cardview.widget.CardView>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/rubik_medium"
android:text="Sound Alerts"
android:textColor="@color/colorTextTitle"
android:textSize="18sp"
android:textStyle="bold"
tools:fontFamily="sans-serif-medium" />
<TextView
android:id="@+id/alertSoundSummary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:fontFamily="@font/rubik_regular"
android:text="Sound alerts enabled for notifications"
android:textColor="@color/colorTextContent"
android:textSize="14sp"
tools:fontFamily="sans-serif" />
</LinearLayout>
<Switch
android:id="@+id/alertSoundSwitch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:clickable="false"
android:focusable="false" />
</LinearLayout>
</androidx.cardview.widget.CardView>
</LinearLayout>
<!-- Transaction Settings Section -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="12dp"
android:fontFamily="@font/rubik_medium"
android:text="Transaction Settings"
android:textColor="@color/colorTextTitle"
android:textSize="16sp"
android:textStyle="bold"
tools:fontFamily="sans-serif-medium" />
<!-- &lt;!&ndash; Manual Entry Card &ndash;&gt;-->
<!-- <androidx.cardview.widget.CardView--> <!-- <androidx.cardview.widget.CardView-->
<!-- android:id="@+id/manualEntryCard"--> <!-- android:id="@+id/demoCard"-->
<!-- android:layout_width="match_parent"--> <!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content"--> <!-- android:layout_height="wrap_content"-->
<!-- android:layout_marginBottom="12dp"--> <!-- android:layout_marginBottom="12dp"-->
<!-- android:clickable="true"--> <!-- android:clickable="true"-->
<!-- android:foreground="?android:attr/selectableItemBackground"--> <!-- android:foreground="?android:attr/selectableItemBackground"-->
<!-- android:onClick="@{()->click.onDemoClick()}"-->
<!-- app:cardBackgroundColor="@color/white"--> <!-- app:cardBackgroundColor="@color/white"-->
<!-- app:cardCornerRadius="16dp"--> <!-- app:cardCornerRadius="16dp"-->
<!-- app:cardElevation="2dp">--> <!-- app:cardElevation="2dp">-->
@ -522,7 +347,7 @@
<!-- android:layout_width="24dp"--> <!-- android:layout_width="24dp"-->
<!-- android:layout_height="24dp"--> <!-- android:layout_height="24dp"-->
<!-- android:layout_gravity="center"--> <!-- android:layout_gravity="center"-->
<!-- android:src="@drawable/ic_blur"--> <!-- android:src="@drawable/ic_swap"-->
<!-- app:tint="@color/white" />--> <!-- app:tint="@color/white" />-->
<!-- </androidx.cardview.widget.CardView>--> <!-- </androidx.cardview.widget.CardView>-->
@ -537,19 +362,19 @@
<!-- android:layout_width="wrap_content"--> <!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"--> <!-- android:layout_height="wrap_content"-->
<!-- android:fontFamily="@font/rubik_medium"--> <!-- android:fontFamily="@font/rubik_medium"-->
<!-- android:text="Manual Card Entry"--> <!-- android:text="Demo Mode"-->
<!-- android:textColor="@color/colorTextTitle"--> <!-- android:textColor="@color/colorTextTitle"-->
<!-- android:textSize="18sp"--> <!-- android:textSize="18sp"-->
<!-- android:textStyle="bold"--> <!-- android:textStyle="bold"-->
<!-- tools:fontFamily="sans-serif-medium" />--> <!-- tools:fontFamily="sans-serif-medium" />-->
<!-- <TextView--> <!-- <TextView-->
<!-- android:id="@+id/manualEntrySummary"--> <!-- android:id="@+id/demoSummary"-->
<!-- android:layout_width="wrap_content"--> <!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"--> <!-- android:layout_height="wrap_content"-->
<!-- android:layout_marginTop="2dp"--> <!-- android:layout_marginTop="2dp"-->
<!-- android:fontFamily="@font/rubik_regular"--> <!-- android:fontFamily="@font/rubik_regular"-->
<!-- android:text="Manual card entry allowed for transactions"--> <!-- android:text="Demo mode active - Test transactions"-->
<!-- android:textColor="@color/colorTextContent"--> <!-- android:textColor="@color/colorTextContent"-->
<!-- android:textSize="14sp"--> <!-- android:textSize="14sp"-->
<!-- tools:fontFamily="sans-serif" />--> <!-- tools:fontFamily="sans-serif" />-->
@ -557,7 +382,7 @@
<!-- </LinearLayout>--> <!-- </LinearLayout>-->
<!-- <Switch--> <!-- <Switch-->
<!-- android:id="@+id/manualEntrySwitch"--> <!-- android:id="@+id/demoSwitch"-->
<!-- android:layout_width="wrap_content"--> <!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"--> <!-- android:layout_height="wrap_content"-->
<!-- android:layout_marginStart="8dp"--> <!-- android:layout_marginStart="8dp"-->
@ -568,164 +393,339 @@
<!-- </androidx.cardview.widget.CardView>--> <!-- </androidx.cardview.widget.CardView>-->
<!-- Automatic Reversal Card --> <!-- Sound Alerts Card -->
<androidx.cardview.widget.CardView <!-- <androidx.cardview.widget.CardView-->
android:id="@+id/reversalCard" <!-- android:id="@+id/alertSoundCard"-->
android:layout_width="match_parent" <!-- android:layout_width="match_parent"-->
android:layout_height="wrap_content" <!-- android:layout_height="wrap_content"-->
android:layout_marginBottom="12dp" <!-- android:layout_marginBottom="12dp"-->
android:clickable="true" <!-- android:clickable="true"-->
android:foreground="?android:attr/selectableItemBackground" <!-- android:foreground="?android:attr/selectableItemBackground"-->
android:onClick="@{()->click.onReversalClick()}" <!-- android:onClick="@{()->click.onAlertSoundClick()}"-->
app:cardBackgroundColor="@color/white" <!-- app:cardBackgroundColor="@color/white"-->
app:cardCornerRadius="16dp" <!-- app:cardCornerRadius="16dp"-->
app:cardElevation="2dp"> <!-- app:cardElevation="2dp">-->
<LinearLayout <!-- <LinearLayout-->
android:layout_width="match_parent" <!-- android:layout_width="match_parent"-->
android:layout_height="wrap_content" <!-- android:layout_height="wrap_content"-->
android:gravity="center_vertical" <!-- android:gravity="center_vertical"-->
android:orientation="horizontal" <!-- android:orientation="horizontal"-->
android:padding="20dp"> <!-- android:padding="20dp">-->
<androidx.cardview.widget.CardView <!-- <androidx.cardview.widget.CardView-->
android:layout_width="48dp" <!-- android:layout_width="48dp"-->
android:layout_height="48dp" <!-- android:layout_height="48dp"-->
android:layout_marginEnd="16dp" <!-- android:layout_marginEnd="16dp"-->
app:cardBackgroundColor="@color/colorPrimary" <!-- app:cardBackgroundColor="@color/colorPrimary"-->
app:cardCornerRadius="24dp" <!-- app:cardCornerRadius="24dp"-->
app:cardElevation="0dp"> <!-- app:cardElevation="0dp">-->
<ImageView <!-- <ImageView-->
android:layout_width="24dp" <!-- android:layout_width="24dp"-->
android:layout_height="24dp" <!-- android:layout_height="24dp"-->
android:layout_gravity="center" <!-- android:layout_gravity="center"-->
android:src="@drawable/ic_swap" <!-- android:src="@drawable/ic_audio"-->
app:tint="@color/white" /> <!-- app:tint="@color/white" />-->
</androidx.cardview.widget.CardView> <!-- </androidx.cardview.widget.CardView>-->
<LinearLayout <!-- <LinearLayout-->
android:layout_width="0dp" <!-- android:layout_width="0dp"-->
android:layout_height="wrap_content" <!-- android:layout_height="wrap_content"-->
android:layout_weight="1" <!-- android:layout_weight="1"-->
android:orientation="vertical"> <!-- android:orientation="vertical">-->
<TextView <!-- <TextView-->
android:layout_width="wrap_content" <!-- android:layout_width="wrap_content"-->
android:layout_height="wrap_content" <!-- android:layout_height="wrap_content"-->
android:fontFamily="@font/rubik_medium" <!-- android:fontFamily="@font/rubik_medium"-->
android:text="Automatic Reversal" <!-- android:text="Sound Alerts"-->
android:textColor="@color/colorTextTitle" <!-- android:textColor="@color/colorTextTitle"-->
android:textSize="18sp" <!-- android:textSize="18sp"-->
android:textStyle="bold" <!-- android:textStyle="bold"-->
tools:fontFamily="sans-serif-medium" /> <!-- tools:fontFamily="sans-serif-medium" />-->
<TextView <!-- <TextView-->
android:id="@+id/reversalSummary" <!-- android:id="@+id/alertSoundSummary"-->
android:layout_width="wrap_content" <!-- android:layout_width="wrap_content"-->
android:layout_height="wrap_content" <!-- android:layout_height="wrap_content"-->
android:layout_marginTop="2dp" <!-- android:layout_marginTop="2dp"-->
android:fontFamily="@font/rubik_regular" <!-- android:fontFamily="@font/rubik_regular"-->
android:text="Automatic reversal enabled for failed transactions" <!-- android:text="Sound alerts enabled for notifications"-->
android:textColor="@color/colorTextContent" <!-- android:textColor="@color/colorTextContent"-->
android:textSize="14sp" <!-- android:textSize="14sp"-->
tools:fontFamily="sans-serif" /> <!-- tools:fontFamily="sans-serif" />-->
</LinearLayout> <!-- </LinearLayout>-->
<Switch <!-- <Switch-->
android:id="@+id/reversalSwitch" <!-- android:id="@+id/alertSoundSwitch"-->
android:layout_width="wrap_content" <!-- android:layout_width="wrap_content"-->
android:layout_height="wrap_content" <!-- android:layout_height="wrap_content"-->
android:layout_marginStart="8dp" <!-- android:layout_marginStart="8dp"-->
android:clickable="false" <!-- android:clickable="false"-->
android:focusable="false" /> <!-- android:focusable="false" />-->
</LinearLayout> <!-- </LinearLayout>-->
</androidx.cardview.widget.CardView> <!-- </androidx.cardview.widget.CardView>-->
<!-- Multi-Host Support Card -->
<androidx.cardview.widget.CardView
android:id="@+id/multiHostCard"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="12dp"
android:clickable="true"
android:foreground="?android:attr/selectableItemBackground"
android:onClick="@{()->click.onMultiHostClick()}"
app:cardBackgroundColor="@color/white"
app:cardCornerRadius="16dp"
app:cardElevation="2dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
android:padding="20dp">
<androidx.cardview.widget.CardView
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_marginEnd="16dp"
app:cardBackgroundColor="@color/colorPrimary"
app:cardCornerRadius="24dp"
app:cardElevation="0dp">
<ImageView
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_gravity="center"
android:src="@drawable/ic_timeout"
app:tint="@color/white" />
</androidx.cardview.widget.CardView>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/rubik_medium"
android:text="Multi-Host Support"
android:textColor="@color/colorTextTitle"
android:textSize="18sp"
android:textStyle="bold"
tools:fontFamily="sans-serif-medium" />
<TextView
android:id="@+id/multiHostSummary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:fontFamily="@font/rubik_regular"
android:text="Multiple host support enabled"
android:textColor="@color/colorTextContent"
android:textSize="14sp"
tools:fontFamily="sans-serif" />
</LinearLayout>
<Switch
android:id="@+id/multiHostSwitch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:clickable="false"
android:focusable="false" />
</LinearLayout>
</androidx.cardview.widget.CardView>
</LinearLayout> </LinearLayout>
<!-- Transaction Settings Section -->
<!-- <LinearLayout-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_marginBottom="20dp"-->
<!-- android:orientation="vertical">-->
<!-- <TextView-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_marginBottom="12dp"-->
<!-- android:fontFamily="@font/rubik_medium"-->
<!-- android:text="Transaction Settings"-->
<!-- android:textColor="@color/colorTextTitle"-->
<!-- android:textSize="16sp"-->
<!-- android:textStyle="bold"-->
<!-- tools:fontFamily="sans-serif-medium" />-->
<!--&lt;!&ndash; &lt;!&ndash; Manual Entry Card &ndash;&gt;&ndash;&gt;-->
<!--&lt;!&ndash; <androidx.cardview.widget.CardView&ndash;&gt;-->
<!--&lt;!&ndash; android:id="@+id/manualEntryCard"&ndash;&gt;-->
<!--&lt;!&ndash; android:layout_width="match_parent"&ndash;&gt;-->
<!--&lt;!&ndash; android:layout_height="wrap_content"&ndash;&gt;-->
<!--&lt;!&ndash; android:layout_marginBottom="12dp"&ndash;&gt;-->
<!--&lt;!&ndash; android:clickable="true"&ndash;&gt;-->
<!--&lt;!&ndash; android:foreground="?android:attr/selectableItemBackground"&ndash;&gt;-->
<!--&lt;!&ndash; app:cardBackgroundColor="@color/white"&ndash;&gt;-->
<!--&lt;!&ndash; app:cardCornerRadius="16dp"&ndash;&gt;-->
<!--&lt;!&ndash; app:cardElevation="2dp">&ndash;&gt;-->
<!--&lt;!&ndash; <LinearLayout&ndash;&gt;-->
<!--&lt;!&ndash; android:layout_width="match_parent"&ndash;&gt;-->
<!--&lt;!&ndash; android:layout_height="wrap_content"&ndash;&gt;-->
<!--&lt;!&ndash; android:gravity="center_vertical"&ndash;&gt;-->
<!--&lt;!&ndash; android:orientation="horizontal"&ndash;&gt;-->
<!--&lt;!&ndash; android:padding="20dp">&ndash;&gt;-->
<!--&lt;!&ndash; <androidx.cardview.widget.CardView&ndash;&gt;-->
<!--&lt;!&ndash; android:layout_width="48dp"&ndash;&gt;-->
<!--&lt;!&ndash; android:layout_height="48dp"&ndash;&gt;-->
<!--&lt;!&ndash; android:layout_marginEnd="16dp"&ndash;&gt;-->
<!--&lt;!&ndash; app:cardBackgroundColor="@color/colorPrimary"&ndash;&gt;-->
<!--&lt;!&ndash; app:cardCornerRadius="24dp"&ndash;&gt;-->
<!--&lt;!&ndash; app:cardElevation="0dp">&ndash;&gt;-->
<!--&lt;!&ndash; <ImageView&ndash;&gt;-->
<!--&lt;!&ndash; android:layout_width="24dp"&ndash;&gt;-->
<!--&lt;!&ndash; android:layout_height="24dp"&ndash;&gt;-->
<!--&lt;!&ndash; android:layout_gravity="center"&ndash;&gt;-->
<!--&lt;!&ndash; android:src="@drawable/ic_blur"&ndash;&gt;-->
<!--&lt;!&ndash; app:tint="@color/white" />&ndash;&gt;-->
<!--&lt;!&ndash; </androidx.cardview.widget.CardView>&ndash;&gt;-->
<!--&lt;!&ndash; <LinearLayout&ndash;&gt;-->
<!--&lt;!&ndash; android:layout_width="0dp"&ndash;&gt;-->
<!--&lt;!&ndash; android:layout_height="wrap_content"&ndash;&gt;-->
<!--&lt;!&ndash; android:layout_weight="1"&ndash;&gt;-->
<!--&lt;!&ndash; android:orientation="vertical">&ndash;&gt;-->
<!--&lt;!&ndash; <TextView&ndash;&gt;-->
<!--&lt;!&ndash; android:layout_width="wrap_content"&ndash;&gt;-->
<!--&lt;!&ndash; android:layout_height="wrap_content"&ndash;&gt;-->
<!--&lt;!&ndash; android:fontFamily="@font/rubik_medium"&ndash;&gt;-->
<!--&lt;!&ndash; android:text="Manual Card Entry"&ndash;&gt;-->
<!--&lt;!&ndash; android:textColor="@color/colorTextTitle"&ndash;&gt;-->
<!--&lt;!&ndash; android:textSize="18sp"&ndash;&gt;-->
<!--&lt;!&ndash; android:textStyle="bold"&ndash;&gt;-->
<!--&lt;!&ndash; tools:fontFamily="sans-serif-medium" />&ndash;&gt;-->
<!--&lt;!&ndash; <TextView&ndash;&gt;-->
<!--&lt;!&ndash; android:id="@+id/manualEntrySummary"&ndash;&gt;-->
<!--&lt;!&ndash; android:layout_width="wrap_content"&ndash;&gt;-->
<!--&lt;!&ndash; android:layout_height="wrap_content"&ndash;&gt;-->
<!--&lt;!&ndash; android:layout_marginTop="2dp"&ndash;&gt;-->
<!--&lt;!&ndash; android:fontFamily="@font/rubik_regular"&ndash;&gt;-->
<!--&lt;!&ndash; android:text="Manual card entry allowed for transactions"&ndash;&gt;-->
<!--&lt;!&ndash; android:textColor="@color/colorTextContent"&ndash;&gt;-->
<!--&lt;!&ndash; android:textSize="14sp"&ndash;&gt;-->
<!--&lt;!&ndash; tools:fontFamily="sans-serif" />&ndash;&gt;-->
<!--&lt;!&ndash; </LinearLayout>&ndash;&gt;-->
<!--&lt;!&ndash; <Switch&ndash;&gt;-->
<!--&lt;!&ndash; android:id="@+id/manualEntrySwitch"&ndash;&gt;-->
<!--&lt;!&ndash; android:layout_width="wrap_content"&ndash;&gt;-->
<!--&lt;!&ndash; android:layout_height="wrap_content"&ndash;&gt;-->
<!--&lt;!&ndash; android:layout_marginStart="8dp"&ndash;&gt;-->
<!--&lt;!&ndash; android:clickable="false"&ndash;&gt;-->
<!--&lt;!&ndash; android:focusable="false" />&ndash;&gt;-->
<!--&lt;!&ndash; </LinearLayout>&ndash;&gt;-->
<!--&lt;!&ndash; </androidx.cardview.widget.CardView>&ndash;&gt;-->
<!-- &lt;!&ndash; Automatic Reversal Card &ndash;&gt;-->
<!-- <androidx.cardview.widget.CardView-->
<!-- android:id="@+id/reversalCard"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_marginBottom="12dp"-->
<!-- android:clickable="true"-->
<!-- android:foreground="?android:attr/selectableItemBackground"-->
<!-- android:onClick="@{()->click.onReversalClick()}"-->
<!-- app:cardBackgroundColor="@color/white"-->
<!-- app:cardCornerRadius="16dp"-->
<!-- app:cardElevation="2dp">-->
<!-- <LinearLayout-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:gravity="center_vertical"-->
<!-- android:orientation="horizontal"-->
<!-- android:padding="20dp">-->
<!-- <androidx.cardview.widget.CardView-->
<!-- android:layout_width="48dp"-->
<!-- android:layout_height="48dp"-->
<!-- android:layout_marginEnd="16dp"-->
<!-- app:cardBackgroundColor="@color/colorPrimary"-->
<!-- app:cardCornerRadius="24dp"-->
<!-- app:cardElevation="0dp">-->
<!-- <ImageView-->
<!-- android:layout_width="24dp"-->
<!-- android:layout_height="24dp"-->
<!-- android:layout_gravity="center"-->
<!-- android:src="@drawable/ic_swap"-->
<!-- app:tint="@color/white" />-->
<!-- </androidx.cardview.widget.CardView>-->
<!-- <LinearLayout-->
<!-- android:layout_width="0dp"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_weight="1"-->
<!-- android:orientation="vertical">-->
<!-- <TextView-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:fontFamily="@font/rubik_medium"-->
<!-- android:text="Automatic Reversal"-->
<!-- android:textColor="@color/colorTextTitle"-->
<!-- android:textSize="18sp"-->
<!-- android:textStyle="bold"-->
<!-- tools:fontFamily="sans-serif-medium" />-->
<!-- <TextView-->
<!-- android:id="@+id/reversalSummary"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_marginTop="2dp"-->
<!-- android:fontFamily="@font/rubik_regular"-->
<!-- android:text="Automatic reversal enabled for failed transactions"-->
<!-- android:textColor="@color/colorTextContent"-->
<!-- android:textSize="14sp"-->
<!-- tools:fontFamily="sans-serif" />-->
<!-- </LinearLayout>-->
<!-- <Switch-->
<!-- android:id="@+id/reversalSwitch"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_marginStart="8dp"-->
<!-- android:clickable="false"-->
<!-- android:focusable="false" />-->
<!-- </LinearLayout>-->
<!-- </androidx.cardview.widget.CardView>-->
<!-- &lt;!&ndash; Multi-Host Support Card &ndash;&gt;-->
<!-- <androidx.cardview.widget.CardView-->
<!-- android:id="@+id/multiHostCard"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_marginBottom="12dp"-->
<!-- android:clickable="true"-->
<!-- android:foreground="?android:attr/selectableItemBackground"-->
<!-- android:onClick="@{()->click.onMultiHostClick()}"-->
<!-- app:cardBackgroundColor="@color/white"-->
<!-- app:cardCornerRadius="16dp"-->
<!-- app:cardElevation="2dp">-->
<!-- <LinearLayout-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:gravity="center_vertical"-->
<!-- android:orientation="horizontal"-->
<!-- android:padding="20dp">-->
<!-- <androidx.cardview.widget.CardView-->
<!-- android:layout_width="48dp"-->
<!-- android:layout_height="48dp"-->
<!-- android:layout_marginEnd="16dp"-->
<!-- app:cardBackgroundColor="@color/colorPrimary"-->
<!-- app:cardCornerRadius="24dp"-->
<!-- app:cardElevation="0dp">-->
<!-- <ImageView-->
<!-- android:layout_width="24dp"-->
<!-- android:layout_height="24dp"-->
<!-- android:layout_gravity="center"-->
<!-- android:src="@drawable/ic_timeout"-->
<!-- app:tint="@color/white" />-->
<!-- </androidx.cardview.widget.CardView>-->
<!-- <LinearLayout-->
<!-- android:layout_width="0dp"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_weight="1"-->
<!-- android:orientation="vertical">-->
<!-- <TextView-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:fontFamily="@font/rubik_medium"-->
<!-- android:text="Multi-Host Support"-->
<!-- android:textColor="@color/colorTextTitle"-->
<!-- android:textSize="18sp"-->
<!-- android:textStyle="bold"-->
<!-- tools:fontFamily="sans-serif-medium" />-->
<!-- <TextView-->
<!-- android:id="@+id/multiHostSummary"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_marginTop="2dp"-->
<!-- android:fontFamily="@font/rubik_regular"-->
<!-- android:text="Multiple host support enabled"-->
<!-- android:textColor="@color/colorTextContent"-->
<!-- android:textSize="14sp"-->
<!-- tools:fontFamily="sans-serif" />-->
<!-- </LinearLayout>-->
<!-- <Switch-->
<!-- android:id="@+id/multiHostSwitch"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_marginStart="8dp"-->
<!-- android:clickable="false"-->
<!-- android:focusable="false" />-->
<!-- </LinearLayout>-->
<!-- </androidx.cardview.widget.CardView>-->
<!-- </LinearLayout>-->
<!-- System Configuration Section --> <!-- System Configuration Section -->
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"