SHARE
TWEET

Untitled

a guest Apr 23rd, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public void A1_Click(View v)
  2.     {
  3.         chosenPlace("A1");
  4.     }
  5.  
  6.     public void A2_Click(View v)
  7.     {
  8.         chosenPlace("A2");
  9.     }
  10.  
  11.     public void RU_Click(View v)
  12.     {
  13.         chosenPlace("RU");
  14.     }
  15.  
  16.     public void BETA_Click(View v)
  17.     {
  18.         chosenPlace("BETA");
  19.     }
  20.  
  21.     public void DELTA_Click(View v)
  22.     {
  23.         chosenPlace("DELTA");
  24.     }
  25.  
  26.     public void chosenPlace(String place)
  27.     {
  28.         if (OrderUserID.equals(user.getUid())) {
  29.             dbref.child(orderId).child("status").setValue("pending");
  30.             dbref.child(orderId).child("from").setValue(place);
  31.             dbref.child(orderId).child("otherinfo").setValue(ET_OtherInfo.getText().toString());
  32.             startActivity(finishOrder);
  33.         }
  34.         else
  35.         {
  36.             dbref.child(orderId).child("status").setValue("accepted");
  37.             dbref.child(orderId).child("acceptedfrom").setValue(place);
  38.             dbref.child(orderId).child("deliveryotherinfo").setValue(ET_OtherInfo.getText().toString());
  39.             startActivity(finishAccept);
  40.         }
  41.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top