mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-07 05:24:46 +01:00
don't show sms-failed toast when permission is banned
This commit is contained in:
parent
d31271e372
commit
a40c6f494f
1 changed files with 5 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue