Play an audible notification on receiving a class zero message.

Changes ported from http://review.cyanogenmod.org/#/c/125457/

PAELLA-123

Change-Id: I1289790d32a3b69bf7892025bac5fa3bd74eeefc
This commit is contained in:
Arun Valiaparambil
2016-04-01 15:46:29 +05:30
committed by Michael Bestas
parent 5492b1aa0f
commit 4b218d1561
2 changed files with 12 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ import android.view.Window;
import com.android.messaging.R;
import com.android.messaging.datamodel.action.ReceiveSmsMessageAction;
import com.android.messaging.datamodel.BugleNotifications;
import com.android.messaging.util.Assert;
import java.util.ArrayList;
@@ -88,6 +89,8 @@ public class ClassZeroActivity extends Activity {
return false;
}
mMessageQueue.add(messageValues);
// Show a notification to let the user know a new message has arrived
BugleNotifications.playClassZeroNotification();
return true;
}