mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-09 22:00:39 +01:00
still learning magit: check preference before playing sound
This commit is contained in:
parent
99effcac89
commit
c860773234
1 changed files with 5 additions and 3 deletions
|
@ -240,9 +240,11 @@ public class Utils {
|
|||
|
||||
public static void playNotificationSound( Context context )
|
||||
{
|
||||
Uri uri = RingtoneManager
|
||||
.getDefaultUri( RingtoneManager.TYPE_NOTIFICATION );
|
||||
RingtoneManager.getRingtone( context, uri ).play();
|
||||
if ( CommonPrefs.getSoundNotify( context ) ) {
|
||||
Uri uri = RingtoneManager
|
||||
.getDefaultUri( RingtoneManager.TYPE_NOTIFICATION );
|
||||
RingtoneManager.getRingtone( context, uri ).play();
|
||||
}
|
||||
}
|
||||
|
||||
// adapted from
|
||||
|
|
Loading…
Add table
Reference in a new issue