예제 #1
0
 @Override
 public void onClick(View v) {
   switch (v.getId()) {
     case R.id.ivMore:
       UIUtils.hideSoftInput(this);
       showMoreAction(true, v);
       break;
     case R.id.tvContentAlert:
       break;
     case R.id.ivBackgroundAlert:
       showAlertSmsLimit(false);
       break;
     case R.id.ivBack:
       UIUtils.hideSoftInput(this);
       finish();
       break;
     case R.id.tvCall:
     case R.id.tvCallNow:
       startCall();
       break;
     case R.id.tvSend:
       //			UIUtils.hideSoftInput(this);
       if (UIUtils.ensureNetworkInternet(this, false)) {
         sendMessage();
       }
       break;
     case R.id.ivAction:
       if (UIUtils.ensureNetworkInternet(this, false)) {
         if (isSendSMS) {
           return;
         }
         askWhatForShare();
       }
       break;
     default:
       UIUtils.alert(this, "still building");
       break;
   }
 }
예제 #2
0
 @Override
 protected void onPause() {
   UIUtils.hideSoftInput(this);
   super.onPause();
   //		stopLocationUpdates();
 }