Esempio n. 1
0
 /**
  * Use this factory method to create a new instance of this fragment using the an account id.
  *
  * @param accountId the id of an account
  * @return A new instance of fragment WalletSendCoins.
  */
 public static SendFragment newInstance(String accountId) {
   SendFragment fragment = new SendFragment();
   Bundle args = new Bundle();
   args.putSerializable(Constants.ARG_ACCOUNT_ID, accountId);
   fragment.setArguments(args);
   return fragment;
 }
Esempio n. 2
0
 /**
  * Use this factory method to create a new instance of this fragment using a URI.
  *
  * @param uri the payment uri
  * @return A new instance of fragment WalletSendCoins.
  */
 public static SendFragment newInstance(Uri uri) {
   SendFragment fragment = new SendFragment();
   Bundle args = new Bundle();
   args.putString(Constants.ARG_URI, uri.toString());
   fragment.setArguments(args);
   return fragment;
 }
Esempio n. 3
0
 @Override
 protected void weakHandleMessage(SendFragment ref, Message msg) {
   switch (msg.what) {
     case UPDATE_LOCAL_EXCHANGE_RATES:
       ref.onLocalExchangeRatesUpdate((HashMap<String, ExchangeRate>) msg.obj);
       break;
     case UPDATE_WALLET_CHANGE:
       ref.onWalletUpdate();
       break;
     case UPDATE_MARKET:
       ref.onMarketUpdate((ShapeShiftMarketInfo) msg.obj);
       break;
   }
 }