|
|
@ -5,23 +5,6 @@ import android.content.Intent; |
|
|
|
import android.graphics.Paint; |
|
|
|
import android.graphics.Rect; |
|
|
|
import android.os.Bundle; |
|
|
|
import androidx.annotation.NonNull; |
|
|
|
import androidx.annotation.Nullable; |
|
|
|
import androidx.appcompat.widget.AppCompatImageView; |
|
|
|
import androidx.constraintlayout.widget.ConstraintLayout; |
|
|
|
import androidx.constraintlayout.widget.ConstraintSet; |
|
|
|
import androidx.transition.ArcMotion; |
|
|
|
import androidx.transition.ChangeBounds; |
|
|
|
import androidx.transition.Transition; |
|
|
|
import androidx.transition.TransitionListenerAdapter; |
|
|
|
import androidx.transition.TransitionManager; |
|
|
|
import androidx.core.content.ContextCompat; |
|
|
|
import androidx.core.view.GestureDetectorCompat; |
|
|
|
import androidx.core.view.ViewCompat; |
|
|
|
import androidx.core.view.ViewPropertyAnimatorListenerAdapter; |
|
|
|
import androidx.recyclerview.widget.RecyclerView; |
|
|
|
import androidx.recyclerview.widget.StaggeredGridLayoutManager; |
|
|
|
|
|
|
|
import android.os.Handler; |
|
|
|
import android.text.Editable; |
|
|
|
import android.view.GestureDetector; |
|
|
@ -38,10 +21,27 @@ import android.widget.ImageView; |
|
|
|
import android.widget.ProgressBar; |
|
|
|
import android.widget.TextView; |
|
|
|
|
|
|
|
import androidx.annotation.NonNull; |
|
|
|
import androidx.annotation.Nullable; |
|
|
|
import androidx.appcompat.widget.AppCompatImageView; |
|
|
|
import androidx.constraintlayout.widget.ConstraintLayout; |
|
|
|
import androidx.constraintlayout.widget.ConstraintSet; |
|
|
|
import androidx.core.content.ContextCompat; |
|
|
|
import androidx.core.view.GestureDetectorCompat; |
|
|
|
import androidx.core.view.ViewCompat; |
|
|
|
import androidx.core.view.ViewPropertyAnimatorListenerAdapter; |
|
|
|
import androidx.recyclerview.widget.RecyclerView; |
|
|
|
import androidx.recyclerview.widget.StaggeredGridLayoutManager; |
|
|
|
import androidx.transition.ArcMotion; |
|
|
|
import androidx.transition.ChangeBounds; |
|
|
|
import androidx.transition.Transition; |
|
|
|
import androidx.transition.TransitionListenerAdapter; |
|
|
|
import androidx.transition.TransitionManager; |
|
|
|
|
|
|
|
import com.swifttech.remit.android.R; |
|
|
|
import com.swifttech.remit.android.base.BaseActivity; |
|
|
|
import com.swifttech.remit.android.common.customwidgets.CurrencyFormatterTextWatcher; |
|
|
|
import com.swifttech.remit.android.common.customwidgets.GmeEditText; |
|
|
|
import com.swifttech.remit.android.common.customwidgets.GmeTextView; |
|
|
|
import com.swifttech.remit.android.common.customwidgets.exchangecountrylistingdialog.CountryFlagMapper; |
|
|
|
import com.swifttech.remit.android.common.customwidgets.exchangecountrylistingdialog.ExchangeRateCurrencyListingDialog; |
|
|
|
import com.swifttech.remit.android.features.exrate.gateway.ExchangeRateGateway; |
|
|
@ -52,8 +52,6 @@ import com.swifttech.remit.android.features.exrate.presenter.ExchangeRatePresent |
|
|
|
import com.swifttech.remit.android.features.exrate.view.SelectedRedBorderDecoration; |
|
|
|
import com.swifttech.remit.android.features.home.view.HomeActivityV2; |
|
|
|
import com.swifttech.remit.android.features.login.view.LoginV2Activity; |
|
|
|
import com.swifttech.remit.android.features.otpverification.view.OTPVerificationActivity; |
|
|
|
import com.swifttech.remit.android.features.register.view.RegisterV2Activity; |
|
|
|
import com.swifttech.remit.android.features.registerv2.existingcustomer.view.ExistingCustomerRegisterV2Activity; |
|
|
|
import com.swifttech.remit.android.features.registerv2.newcustomer.view.NewRegisterV2Activity; |
|
|
|
import com.swifttech.remit.android.features.settings.gateway.LanguageSelectionGateway; |
|
|
@ -118,8 +116,6 @@ public class SplashScreen extends BaseActivity implements View.OnClickListener, |
|
|
|
@BindView(R.id.recepientFlagImageView) |
|
|
|
ImageView receivingCountryFlagImageView; |
|
|
|
|
|
|
|
@BindView(R.id.recepientCurrencyTextView) |
|
|
|
TextView receivingCurrencyCodeTxtView; |
|
|
|
|
|
|
|
@BindView(R.id.transferFeeTxtView) |
|
|
|
TextView transferFeeTxtView; |
|
|
@ -128,13 +124,18 @@ public class SplashScreen extends BaseActivity implements View.OnClickListener, |
|
|
|
TextView exchangeRateTxtView; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@BindView(R.id.gmeExratePC) |
|
|
|
TextView gmeExratePC; |
|
|
|
|
|
|
|
@BindView(R.id.countrySelectionSpinner) |
|
|
|
View countrySelectionSpinner; |
|
|
|
|
|
|
|
@BindView(R.id.recepientCurrencyTextView) |
|
|
|
GmeTextView recepientCurrencyTextView; |
|
|
|
|
|
|
|
@BindView(R.id.countrySelectionSpinnerArrow) |
|
|
|
ImageView countrySelectionSpinnerArrow; |
|
|
|
|
|
|
|
@BindView(R.id.receiveMoneyViewContainer) |
|
|
|
View receiveMoneyViewContainer; |
|
|
|
|
|
|
@ -151,8 +152,6 @@ public class SplashScreen extends BaseActivity implements View.OnClickListener, |
|
|
|
View existing_user_register_txt; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LanguageViewTransitionManager languageViewTransitionManager; |
|
|
|
|
|
|
|
LanguageSelectionRVAdapter languageSelectionRVAdapter; |
|
|
@ -225,6 +224,8 @@ public class SplashScreen extends BaseActivity implements View.OnClickListener, |
|
|
|
public void onClick(View view) { |
|
|
|
switch (view.getId()) { |
|
|
|
case R.id.countrySelectionSpinner: |
|
|
|
case R.id.recepientCurrencyTextView: |
|
|
|
case R.id.countrySelectionSpinnerArrow: |
|
|
|
showCountryListinDialog(); |
|
|
|
break; |
|
|
|
case R.id.btn_rgstr: |
|
|
@ -262,13 +263,14 @@ public class SplashScreen extends BaseActivity implements View.OnClickListener, |
|
|
|
selectedLanguageText.setOnClickListener(this); |
|
|
|
selectedLanguageIcon.setOnClickListener(this); |
|
|
|
countrySelectionSpinner.setOnClickListener(this); |
|
|
|
recepientCurrencyTextView.setOnClickListener(this); |
|
|
|
countrySelectionSpinnerArrow.setOnClickListener(this); |
|
|
|
receiveAmountEdTxt.setOnEditorActionListener(this); |
|
|
|
sendAmountEdTxt.setOnEditorActionListener(this); |
|
|
|
existing_user_register_txt.setOnClickListener(this); |
|
|
|
selectLangBg.setOnClickListener(this); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
@ -280,6 +282,8 @@ public class SplashScreen extends BaseActivity implements View.OnClickListener, |
|
|
|
selectedLanguageText.setOnClickListener(null); |
|
|
|
selectedLanguageIcon.setOnClickListener(null); |
|
|
|
countrySelectionSpinner.setOnClickListener(null); |
|
|
|
recepientCurrencyTextView.setOnClickListener(null); |
|
|
|
countrySelectionSpinnerArrow.setOnClickListener(null); |
|
|
|
receiveAmountEdTxt.setOnEditorActionListener(null); |
|
|
|
sendAmountEdTxt.setOnEditorActionListener(null); |
|
|
|
existing_user_register_txt.setOnClickListener(null); |
|
|
@ -316,9 +320,7 @@ public class SplashScreen extends BaseActivity implements View.OnClickListener, |
|
|
|
super.onNewIntent(intent); |
|
|
|
try { |
|
|
|
performDefaultAction(null); |
|
|
|
} |
|
|
|
catch(Exception e) |
|
|
|
{ |
|
|
|
} catch (Exception e) { |
|
|
|
restartApp(); |
|
|
|
} |
|
|
|
} |
|
|
@ -356,7 +358,6 @@ public class SplashScreen extends BaseActivity implements View.OnClickListener, |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
public void showAppVersion(String appVersion) { |
|
|
|
appVersionTxtView.setText(appVersion); |
|
|
@ -419,7 +420,7 @@ public class SplashScreen extends BaseActivity implements View.OnClickListener, |
|
|
|
|
|
|
|
@Override |
|
|
|
public void showSelectedPayoutCurrency(CountryPaymentService selectedPayoutCountryCurrency) { |
|
|
|
receivingCurrencyCodeTxtView.setText(selectedPayoutCountryCurrency.getCurrency()); |
|
|
|
recepientCurrencyTextView.setText(selectedPayoutCountryCurrency.getCurrency()); |
|
|
|
receivingCountryFlagImageView.setBackgroundResource(CountryFlagMapper.getFlagFromCountryCode(selectedPayoutCountryCurrency.getCountryCode())); |
|
|
|
receivingCountryFlagImageView.setBackgroundResource(CountryFlagMapper.getFlagFromCountryCode(selectedPayoutCountryCurrency.getCountryCode())); |
|
|
|
|
|
|
@ -791,8 +792,6 @@ public class SplashScreen extends BaseActivity implements View.OnClickListener, |
|
|
|
btnRegisterLeftAndTopCoordinates[1] + btn_new_user.getMeasuredHeight()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return (receiveAmountEdTxt.hasFocus() || sendAmountEdTxt.hasFocus()) |
|
|
|
&& !sendMoneyBoundRect.contains(posX, posY) |
|
|
|
&& !receiveMoneyBoundRect.contains(posX, posY) |
|
|
@ -807,7 +806,4 @@ public class SplashScreen extends BaseActivity implements View.OnClickListener, |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |