hide time picker
This commit is contained in:
parent
aa34f8e65e
commit
ee037a1101
@ -892,11 +892,13 @@ public class MainFragment extends DataBindingFragment {
|
||||
|
||||
if (mainViewModel.payDetailSingle.getValue() != null) {
|
||||
mainViewModel.startReversal(mainViewModel.payDetailSingle.getValue());
|
||||
} else if (TMSUtil.getInstance().checkParams().isStatus() == ValidityStatus.FAILURE) {
|
||||
showDeclineDialog(getResourceString(R.string.txt_please_download_config)+"\n"+TMSUtil.getInstance().checkParams().getMessage());
|
||||
} else if (!Connectivity.isConnectedWifi(getContext()) && !Connectivity.isConnectedMobile(getContext())) {
|
||||
showSingleInfoDialog(getResourceString(R.string.txt_please_enable_internet));
|
||||
} else {
|
||||
}
|
||||
// else if (TMSUtil.getInstance().checkParams().isStatus() == ValidityStatus.FAILURE) {
|
||||
// showDeclineDialog(getResourceString(R.string.txt_please_download_config)+"\n"+TMSUtil.getInstance().checkParams().getMessage());
|
||||
// } else if (!Connectivity.isConnectedWifi(getContext()) && !Connectivity.isConnectedMobile(getContext())) {
|
||||
// showSingleInfoDialog(getResourceString(R.string.txt_please_enable_internet));
|
||||
// }
|
||||
else {
|
||||
sharedViewModel.settlementType.setValue(SettlementType.NORMAL);
|
||||
sharedViewModel.transactionsType.setValue(TransactionsType.SETTLEMENT);
|
||||
sharedViewModel.setTransMenu(TransMenu.SETTLEMENT);
|
||||
|
||||
@ -153,11 +153,19 @@ public class TransactionSummaryFragment extends DataBindingFragment {
|
||||
if (isStart) {
|
||||
String selectedDate = dateFormat.format(myCalendar.getTime());
|
||||
summaryViewModel.startDate.postValue(selectedDate);
|
||||
LogUtil.d(TAG, "Start date updated: " + selectedDate);
|
||||
// LogUtil.d(TAG, "Start date updated: " + selectedDate);
|
||||
// STATIC START TIME
|
||||
summaryViewModel.startHr.setValue("00");
|
||||
summaryViewModel.startMin.setValue("00");
|
||||
summaryViewModel.startDayOrNight.setValue(getString(R.string.txt_am));
|
||||
} else {
|
||||
String selectedDate = dateFormat.format(myCalendar2.getTime());
|
||||
summaryViewModel.endDate.postValue(selectedDate);
|
||||
LogUtil.d(TAG, "End date updated: " + selectedDate);
|
||||
// STATIC END TIME
|
||||
summaryViewModel.endHr.setValue("23");
|
||||
summaryViewModel.endMin.setValue("59");
|
||||
summaryViewModel.endDayOrNight.setValue(getString(R.string.txt_pm));
|
||||
// LogUtil.d(TAG, "End date updated: " + selectedDate);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
LogUtil.e(TAG, "Error updating date label: " + e.getMessage());
|
||||
|
||||
@ -16,6 +16,9 @@ import com.utsmm.kbz.config.Constants;
|
||||
import com.utsmm.kbz.ui.core_viewmodel.SharedViewModel;
|
||||
import com.utsmm.kbz.util.ecr.CoreUtils;
|
||||
import com.utsmyanmar.paylibs.utils.iso_utils.TransactionsType;
|
||||
import com.utsmm.kbz.util.tms.TMSUtil;
|
||||
import com.utsmm.kbz.util.Connectivity;
|
||||
import com.utsmm.kbz.config.data.model.ValidityStatus;
|
||||
|
||||
public class SelectSettlementFragment extends DataBindingFragment implements DataBindingFragment.BackPressCallback {
|
||||
|
||||
@ -77,15 +80,27 @@ public class SelectSettlementFragment extends DataBindingFragment implements Dat
|
||||
public class ClickEvent {
|
||||
|
||||
public void onCardSettlement() {
|
||||
|
||||
routeId = R.id.action_selectSettlementFragment_to_settlementTransactionFragment;
|
||||
safeNavigateToRouteId();
|
||||
if (TMSUtil.getInstance().checkParams().isStatus() == ValidityStatus.FAILURE) {
|
||||
showDeclineDialog(getResourceString(R.string.txt_please_download_config)+"\n"+TMSUtil.getInstance().checkParams().getMessage());
|
||||
} else if (!Connectivity.isConnectedWifi(getContext()) && !Connectivity.isConnectedMobile(getContext())) {
|
||||
showSingleInfoDialog(getResourceString(R.string.txt_please_enable_internet));
|
||||
} else{
|
||||
routeId = R.id.action_selectSettlementFragment_to_settlementTransactionFragment;
|
||||
safeNavigateToRouteId();
|
||||
}
|
||||
}
|
||||
|
||||
public void onQRSettlement() {
|
||||
sharedViewModel.hostType.setValue(HostType.QR);
|
||||
routeId = R.id.action_selectSettlementFragment_to_QRSettlementTransactionFragment;
|
||||
safeNavigateToRouteId();
|
||||
|
||||
if (TMSUtil.getInstance().checkParams().isStatus() == ValidityStatus.FAILURE) {
|
||||
showDeclineDialog(getResourceString(R.string.txt_please_download_config)+"\n"+TMSUtil.getInstance().checkParams().getMessage());
|
||||
} else if (!Connectivity.isConnectedWifi(getContext()) && !Connectivity.isConnectedMobile(getContext())) {
|
||||
showSingleInfoDialog(getResourceString(R.string.txt_please_enable_internet));
|
||||
} else {
|
||||
sharedViewModel.hostType.setValue(HostType.QR);
|
||||
routeId = R.id.action_selectSettlementFragment_to_QRSettlementTransactionFragment;
|
||||
safeNavigateToRouteId();
|
||||
}
|
||||
}
|
||||
|
||||
public void onCancel() {
|
||||
|
||||
@ -189,6 +189,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="gone"
|
||||
android:gravity="center">
|
||||
|
||||
<!-- Hour -->
|
||||
@ -405,6 +406,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="gone"
|
||||
android:gravity="center">
|
||||
|
||||
<!-- Hour -->
|
||||
|
||||
Loading…
Reference in New Issue
Block a user