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) {
|
if (mainViewModel.payDetailSingle.getValue() != null) {
|
||||||
mainViewModel.startReversal(mainViewModel.payDetailSingle.getValue());
|
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 (TMSUtil.getInstance().checkParams().isStatus() == ValidityStatus.FAILURE) {
|
||||||
} else if (!Connectivity.isConnectedWifi(getContext()) && !Connectivity.isConnectedMobile(getContext())) {
|
// showDeclineDialog(getResourceString(R.string.txt_please_download_config)+"\n"+TMSUtil.getInstance().checkParams().getMessage());
|
||||||
showSingleInfoDialog(getResourceString(R.string.txt_please_enable_internet));
|
// } else if (!Connectivity.isConnectedWifi(getContext()) && !Connectivity.isConnectedMobile(getContext())) {
|
||||||
} else {
|
// showSingleInfoDialog(getResourceString(R.string.txt_please_enable_internet));
|
||||||
|
// }
|
||||||
|
else {
|
||||||
sharedViewModel.settlementType.setValue(SettlementType.NORMAL);
|
sharedViewModel.settlementType.setValue(SettlementType.NORMAL);
|
||||||
sharedViewModel.transactionsType.setValue(TransactionsType.SETTLEMENT);
|
sharedViewModel.transactionsType.setValue(TransactionsType.SETTLEMENT);
|
||||||
sharedViewModel.setTransMenu(TransMenu.SETTLEMENT);
|
sharedViewModel.setTransMenu(TransMenu.SETTLEMENT);
|
||||||
|
|||||||
@ -153,11 +153,19 @@ public class TransactionSummaryFragment extends DataBindingFragment {
|
|||||||
if (isStart) {
|
if (isStart) {
|
||||||
String selectedDate = dateFormat.format(myCalendar.getTime());
|
String selectedDate = dateFormat.format(myCalendar.getTime());
|
||||||
summaryViewModel.startDate.postValue(selectedDate);
|
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 {
|
} else {
|
||||||
String selectedDate = dateFormat.format(myCalendar2.getTime());
|
String selectedDate = dateFormat.format(myCalendar2.getTime());
|
||||||
summaryViewModel.endDate.postValue(selectedDate);
|
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) {
|
} catch (Exception e) {
|
||||||
LogUtil.e(TAG, "Error updating date label: " + e.getMessage());
|
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.ui.core_viewmodel.SharedViewModel;
|
||||||
import com.utsmm.kbz.util.ecr.CoreUtils;
|
import com.utsmm.kbz.util.ecr.CoreUtils;
|
||||||
import com.utsmyanmar.paylibs.utils.iso_utils.TransactionsType;
|
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 {
|
public class SelectSettlementFragment extends DataBindingFragment implements DataBindingFragment.BackPressCallback {
|
||||||
|
|
||||||
@ -77,15 +80,27 @@ public class SelectSettlementFragment extends DataBindingFragment implements Dat
|
|||||||
public class ClickEvent {
|
public class ClickEvent {
|
||||||
|
|
||||||
public void onCardSettlement() {
|
public void onCardSettlement() {
|
||||||
|
if (TMSUtil.getInstance().checkParams().isStatus() == ValidityStatus.FAILURE) {
|
||||||
routeId = R.id.action_selectSettlementFragment_to_settlementTransactionFragment;
|
showDeclineDialog(getResourceString(R.string.txt_please_download_config)+"\n"+TMSUtil.getInstance().checkParams().getMessage());
|
||||||
safeNavigateToRouteId();
|
} 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() {
|
public void onQRSettlement() {
|
||||||
sharedViewModel.hostType.setValue(HostType.QR);
|
|
||||||
routeId = R.id.action_selectSettlementFragment_to_QRSettlementTransactionFragment;
|
if (TMSUtil.getInstance().checkParams().isStatus() == ValidityStatus.FAILURE) {
|
||||||
safeNavigateToRouteId();
|
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() {
|
public void onCancel() {
|
||||||
|
|||||||
@ -189,6 +189,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
|
android:visibility="gone"
|
||||||
android:gravity="center">
|
android:gravity="center">
|
||||||
|
|
||||||
<!-- Hour -->
|
<!-- Hour -->
|
||||||
@ -405,6 +406,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
|
android:visibility="gone"
|
||||||
android:gravity="center">
|
android:gravity="center">
|
||||||
|
|
||||||
<!-- Hour -->
|
<!-- Hour -->
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user