don't show sms-failed toast when permission is banned

This commit is contained in:
Eric House 2019-03-08 12:58:00 -08:00
parent d31271e372
commit a40c6f494f

View file

@ -1372,7 +1372,11 @@ public class BoardDelegate extends DelegateBase
case SMS_SEND_FAILED:
case SMS_SEND_FAILED_NORADIO:
case SMS_SEND_FAILED_NOPERMISSION:
DbgUtils.showf( m_activity, R.string.sms_send_failed );
// Don't bother warning if they're banned. Too frequent
if ( Perms23.havePermissions( m_activity, Perm.SEND_SMS,
Perm.RECEIVE_SMS ) ) {
DbgUtils.showf( m_activity, R.string.sms_send_failed );
}
break;
default: