version fix
This commit is contained in:
parent
d8befb7f2a
commit
ab4801d687
@ -144,35 +144,34 @@ public class SettingsFragment extends DataBindingFragment {
|
||||
|
||||
private void updateDemoSettings() {
|
||||
boolean isDemo = SystemParamsOperation.getInstance().getDemoStatus();
|
||||
binding.demoSwitch.setChecked(isDemo);
|
||||
binding.demoSummary.setText(isDemo ?
|
||||
"Demo mode active - Test transactions without real processing" :
|
||||
"Simulator mode active - Real transaction processing");
|
||||
// binding.demoSwitch.setChecked(isDemo);
|
||||
// binding.demoSummary.setText(isDemo ?
|
||||
// "Demo mode active - Test transactions without real processing" :
|
||||
// "Simulator mode active - Real transaction processing");
|
||||
}
|
||||
|
||||
private void updateAlertSoundSettings() {
|
||||
boolean isEnabled = SystemParamsOperation.getInstance().isAlertSound();
|
||||
binding.alertSoundSwitch.setChecked(isEnabled);
|
||||
binding.alertSoundSummary.setText(isEnabled ?
|
||||
"Sound alerts enabled for notifications" :
|
||||
"Sound alerts disabled - Silent mode");
|
||||
// binding.alertSoundSwitch.setChecked(isEnabled);
|
||||
// binding.alertSoundSummary.setText(isEnabled ?
|
||||
// "Sound alerts enabled for notifications" :
|
||||
// "Sound alerts disabled - Silent mode");
|
||||
}
|
||||
|
||||
|
||||
private void updateReversalSettings() {
|
||||
boolean isEnabled = SystemParamsOperation.getInstance().isReversalOn();
|
||||
binding.reversalSwitch.setChecked(isEnabled);
|
||||
binding.reversalSummary.setText(isEnabled ?
|
||||
"Automatic reversal enabled for failed transactions" :
|
||||
"Automatic reversal disabled - Manual reversal only");
|
||||
// binding.reversalSwitch.setChecked(isEnabled);
|
||||
// binding.reversalSummary.setText(isEnabled ?
|
||||
// "Automatic reversal enabled for failed transactions" :
|
||||
// "Automatic reversal disabled - Manual reversal only");
|
||||
}
|
||||
|
||||
private void updateMultiHostSettings() {
|
||||
boolean isEnabled = SystemParamsOperation.getInstance().isMultiHost();
|
||||
binding.multiHostSwitch.setChecked(isEnabled);
|
||||
binding.multiHostSummary.setText(isEnabled ?
|
||||
"Multiple host support enabled" :
|
||||
"Single host mode - Primary host only");
|
||||
// binding.multiHostSwitch.setChecked(isEnabled);
|
||||
// binding.multiHostSummary.setText(isEnabled ?
|
||||
// "Multiple host support enabled" :
|
||||
// "Single host mode - Primary host only");
|
||||
}
|
||||
|
||||
private void updateTmsAddressSettings() {
|
||||
|
||||
@ -6,6 +6,8 @@ import android.view.View;
|
||||
import androidx.annotation.NonNull;
|
||||
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.util.DataBindingConfig;
|
||||
import com.utsmm.kbz.BR;
|
||||
@ -32,6 +34,7 @@ public class VersionFragment extends DataBindingFragment {
|
||||
|
||||
setToolBarTitleWithBackIcon(getString(R.string.title_version));
|
||||
fetchVersions();
|
||||
versionViewModel.loadDeviceInfo(requireContext());
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -75,5 +78,4 @@ public class VersionFragment extends DataBindingFragment {
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -1,9 +1,13 @@
|
||||
package com.utsmm.kbz.ui.navigation;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.RemoteException;
|
||||
|
||||
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.utsmyanmar.paylibs.system.SingleLiveEvent;
|
||||
import com.utsmyanmar.paylibs.utils.core_utils.SystemParamsOperation;
|
||||
@ -28,7 +32,8 @@ public class VersionViewModel extends ViewModel {
|
||||
|
||||
|
||||
public VersionViewModel() {
|
||||
initData();
|
||||
// initData();
|
||||
// loadDeviceInfo();
|
||||
}
|
||||
|
||||
private void initData() {
|
||||
@ -55,5 +60,21 @@ public class VersionViewModel extends ViewModel {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -446,55 +446,55 @@
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<!-- Manual Reversal -->
|
||||
<androidx.cardview.widget.CardView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="12dp"
|
||||
app:cardCornerRadius="12dp"
|
||||
app:cardElevation="0dp"
|
||||
app:cardBackgroundColor="@color/white"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:foreground="?android:attr/selectableItemBackground"
|
||||
android:onClick="@{()->click.onClickManualReversal()}">
|
||||
<!-- <androidx.cardview.widget.CardView-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_marginBottom="12dp"-->
|
||||
<!-- app:cardCornerRadius="12dp"-->
|
||||
<!-- app:cardElevation="0dp"-->
|
||||
<!-- app:cardBackgroundColor="@color/white"-->
|
||||
<!-- android:clickable="true"-->
|
||||
<!-- android:focusable="true"-->
|
||||
<!-- android:foreground="?android:attr/selectableItemBackground"-->
|
||||
<!-- android:onClick="@{()->click.onClickManualReversal()}">-->
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="2dp"
|
||||
android:background="@drawable/bg_edittext_primary_border"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center_vertical"
|
||||
android:padding="16dp">
|
||||
<!-- <LinearLayout-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_margin="2dp"-->
|
||||
<!-- android:background="@drawable/bg_edittext_primary_border"-->
|
||||
<!-- android:orientation="horizontal"-->
|
||||
<!-- android:gravity="center_vertical"-->
|
||||
<!-- android:padding="16dp">-->
|
||||
|
||||
<ImageView
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:src="@drawable/ic_custom_pos"
|
||||
app:tint="@color/colorPrimary"
|
||||
android:alpha="0.8"
|
||||
android:layout_marginEnd="12dp" />
|
||||
<!-- <ImageView-->
|
||||
<!-- android:layout_width="20dp"-->
|
||||
<!-- android:layout_height="20dp"-->
|
||||
<!-- android:src="@drawable/ic_custom_pos"-->
|
||||
<!-- app:tint="@color/colorPrimary"-->
|
||||
<!-- android:alpha="0.8"-->
|
||||
<!-- android:layout_marginEnd="12dp" />-->
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/txt_subtitle_manual_reversal"
|
||||
android:textColor="@color/colorPrimary"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="normal"
|
||||
android:fontFamily="sans-serif-medium" />
|
||||
<!-- <TextView-->
|
||||
<!-- android:layout_width="0dp"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_weight="1"-->
|
||||
<!-- android:text="@string/txt_subtitle_manual_reversal"-->
|
||||
<!-- android:textColor="@color/colorPrimary"-->
|
||||
<!-- android:textSize="15sp"-->
|
||||
<!-- android:textStyle="normal"-->
|
||||
<!-- android:fontFamily="sans-serif-medium" />-->
|
||||
|
||||
<ImageView
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:src="@drawable/ic_right_arrow"
|
||||
app:tint="@color/colorPrimary"
|
||||
android:alpha="0.6" />
|
||||
<!-- <ImageView-->
|
||||
<!-- android:layout_width="16dp"-->
|
||||
<!-- android:layout_height="16dp"-->
|
||||
<!-- android:src="@drawable/ic_right_arrow"-->
|
||||
<!-- app:tint="@color/colorPrimary"-->
|
||||
<!-- android:alpha="0.6" />-->
|
||||
|
||||
</LinearLayout>
|
||||
<!-- </LinearLayout>-->
|
||||
|
||||
</androidx.cardview.widget.CardView>
|
||||
<!-- </androidx.cardview.widget.CardView>-->
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
@ -316,189 +316,14 @@
|
||||
<!-- </androidx.cardview.widget.CardView>-->
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- <!– Manual Entry Card –>-->
|
||||
<!-- <androidx.cardview.widget.CardView-->
|
||||
<!-- android:id="@+id/manualEntryCard"-->
|
||||
<!-- 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">-->
|
||||
@ -522,7 +347,7 @@
|
||||
<!-- android:layout_width="24dp"-->
|
||||
<!-- android:layout_height="24dp"-->
|
||||
<!-- android:layout_gravity="center"-->
|
||||
<!-- android:src="@drawable/ic_blur"-->
|
||||
<!-- android:src="@drawable/ic_swap"-->
|
||||
<!-- app:tint="@color/white" />-->
|
||||
|
||||
<!-- </androidx.cardview.widget.CardView>-->
|
||||
@ -537,19 +362,19 @@
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:fontFamily="@font/rubik_medium"-->
|
||||
<!-- android:text="Manual Card Entry"-->
|
||||
<!-- android:text="Demo Mode"-->
|
||||
<!-- android:textColor="@color/colorTextTitle"-->
|
||||
<!-- android:textSize="18sp"-->
|
||||
<!-- android:textStyle="bold"-->
|
||||
<!-- tools:fontFamily="sans-serif-medium" />-->
|
||||
|
||||
<!-- <TextView-->
|
||||
<!-- android:id="@+id/manualEntrySummary"-->
|
||||
<!-- 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="Manual card entry allowed for transactions"-->
|
||||
<!-- android:text="Demo mode active - Test transactions"-->
|
||||
<!-- android:textColor="@color/colorTextContent"-->
|
||||
<!-- android:textSize="14sp"-->
|
||||
<!-- tools:fontFamily="sans-serif" />-->
|
||||
@ -557,7 +382,7 @@
|
||||
<!-- </LinearLayout>-->
|
||||
|
||||
<!-- <Switch-->
|
||||
<!-- android:id="@+id/manualEntrySwitch"-->
|
||||
<!-- android:id="@+id/demoSwitch"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_marginStart="8dp"-->
|
||||
@ -568,163 +393,338 @@
|
||||
|
||||
<!-- </androidx.cardview.widget.CardView>-->
|
||||
|
||||
<!-- Automatic Reversal Card -->
|
||||
<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">
|
||||
<!-- 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">
|
||||
<!-- <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">
|
||||
<!-- <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" />
|
||||
<!-- <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>
|
||||
<!-- </androidx.cardview.widget.CardView>-->
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
<!-- <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: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/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" />
|
||||
<!-- <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>
|
||||
|
||||
<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" />
|
||||
<!-- Transaction Settings Section -->
|
||||
<!-- <LinearLayout-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_marginBottom="20dp"-->
|
||||
<!-- android:orientation="vertical">-->
|
||||
|
||||
</LinearLayout>
|
||||
<!-- <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" />-->
|
||||
|
||||
</androidx.cardview.widget.CardView>
|
||||
<!--<!– <!– Manual Entry Card –>–>-->
|
||||
<!--<!– <androidx.cardview.widget.CardView–>-->
|
||||
<!--<!– android:id="@+id/manualEntryCard"–>-->
|
||||
<!--<!– android:layout_width="match_parent"–>-->
|
||||
<!--<!– android:layout_height="wrap_content"–>-->
|
||||
<!--<!– android:layout_marginBottom="12dp"–>-->
|
||||
<!--<!– android:clickable="true"–>-->
|
||||
<!--<!– android:foreground="?android:attr/selectableItemBackground"–>-->
|
||||
<!--<!– app:cardBackgroundColor="@color/white"–>-->
|
||||
<!--<!– app:cardCornerRadius="16dp"–>-->
|
||||
<!--<!– app:cardElevation="2dp">–>-->
|
||||
|
||||
<!-- 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">–>-->
|
||||
|
||||
<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">–>-->
|
||||
|
||||
<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_blur"–>-->
|
||||
<!--<!– app:tint="@color/white" />–>-->
|
||||
|
||||
<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>–>-->
|
||||
|
||||
</androidx.cardview.widget.CardView>
|
||||
<!--<!– <LinearLayout–>-->
|
||||
<!--<!– android:layout_width="0dp"–>-->
|
||||
<!--<!– android:layout_height="wrap_content"–>-->
|
||||
<!--<!– android:layout_weight="1"–>-->
|
||||
<!--<!– android:orientation="vertical">–>-->
|
||||
|
||||
<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="Manual Card Entry"–>-->
|
||||
<!--<!– android:textColor="@color/colorTextTitle"–>-->
|
||||
<!--<!– android:textSize="18sp"–>-->
|
||||
<!--<!– android:textStyle="bold"–>-->
|
||||
<!--<!– tools:fontFamily="sans-serif-medium" />–>-->
|
||||
|
||||
<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/manualEntrySummary"–>-->
|
||||
<!--<!– android:layout_width="wrap_content"–>-->
|
||||
<!--<!– android:layout_height="wrap_content"–>-->
|
||||
<!--<!– android:layout_marginTop="2dp"–>-->
|
||||
<!--<!– android:fontFamily="@font/rubik_regular"–>-->
|
||||
<!--<!– android:text="Manual card entry allowed for transactions"–>-->
|
||||
<!--<!– android:textColor="@color/colorTextContent"–>-->
|
||||
<!--<!– android:textSize="14sp"–>-->
|
||||
<!--<!– tools:fontFamily="sans-serif" />–>-->
|
||||
|
||||
<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>–>-->
|
||||
|
||||
</LinearLayout>
|
||||
<!--<!– <Switch–>-->
|
||||
<!--<!– android:id="@+id/manualEntrySwitch"–>-->
|
||||
<!--<!– android:layout_width="wrap_content"–>-->
|
||||
<!--<!– android:layout_height="wrap_content"–>-->
|
||||
<!--<!– android:layout_marginStart="8dp"–>-->
|
||||
<!--<!– android:clickable="false"–>-->
|
||||
<!--<!– android:focusable="false" />–>-->
|
||||
|
||||
<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>–>-->
|
||||
|
||||
</LinearLayout>
|
||||
<!--<!– </androidx.cardview.widget.CardView>–>-->
|
||||
|
||||
</androidx.cardview.widget.CardView>
|
||||
<!-- <!– Automatic Reversal Card –>-->
|
||||
<!-- <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>
|
||||
<!-- <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>-->
|
||||
|
||||
<!-- <!– 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>-->
|
||||
|
||||
<!-- System Configuration Section -->
|
||||
<LinearLayout
|
||||
|
||||
Loading…
Reference in New Issue
Block a user