コード例 #1
0
 public void setMessage(CharSequence msg, boolean important) {
   if (!TextUtils.isEmpty(msg) && important) {
     mMessageArea.mMessage = msg;
     mMessageArea.securityMessageChanged();
   }
 }
コード例 #2
0
 @Override
 public void setTimeout(int timeoutMs) {
   mMessageArea.mTimeout = timeoutMs;
 }
コード例 #3
0
 @Override
 public void hideBouncer(int duration) {
   mMessageArea.showMessage(duration);
   mMessageArea.mShowingBouncer = false;
 }
コード例 #4
0
 @Override
 public void showBouncer(int duration) {
   mMessageArea.hideMessage(duration, false);
   mMessageArea.mShowingBouncer = true;
 }
コード例 #5
0
 public void setMessage(int resId, boolean important, Object... formatArgs) {
   if (resId != 0 && important) {
     mMessageArea.mMessage = mMessageArea.getContext().getString(resId, formatArgs);
     mMessageArea.securityMessageChanged();
   }
 }
コード例 #6
0
 public void setMessage(int resId, boolean important) {
   if (resId != 0 && important) {
     mMessageArea.mMessage = mMessageArea.getContext().getResources().getText(resId);
     mMessageArea.securityMessageChanged();
   }
 }