mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-15 20:48:00 +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 )
|
public static void playNotificationSound( Context context )
|
||||||
{
|
{
|
||||||
Uri uri = RingtoneManager
|
if ( CommonPrefs.getSoundNotify( context ) ) {
|
||||||
.getDefaultUri( RingtoneManager.TYPE_NOTIFICATION );
|
Uri uri = RingtoneManager
|
||||||
RingtoneManager.getRingtone( context, uri ).play();
|
.getDefaultUri( RingtoneManager.TYPE_NOTIFICATION );
|
||||||
|
RingtoneManager.getRingtone( context, uri ).play();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// adapted from
|
// adapted from
|
||||||
|
|
Loading…
Add table
Reference in a new issue