[and] New resources.
BIN
android/res/drawable-hdpi-v11/ic_notification.png
Executable file
After Width: | Height: | Size: 910 B |
BIN
android/res/drawable-hdpi/ic_notification.png
Executable file
After Width: | Height: | Size: 607 B |
BIN
android/res/drawable-mdpi-v11/ic_notification.png
Executable file
After Width: | Height: | Size: 591 B |
BIN
android/res/drawable-mdpi/ic_notification.png
Executable file
After Width: | Height: | Size: 394 B |
BIN
android/res/drawable-xhdpi-v11/ic_notification.png
Executable file
After Width: | Height: | Size: 1.9 KiB |
BIN
android/res/drawable-xhdpi/ic_notification.png
Executable file
After Width: | Height: | Size: 1.2 KiB |
BIN
android/res/drawable-xxhdpi-v11/ic_notification.png
Executable file
After Width: | Height: | Size: 3.1 KiB |
BIN
android/res/drawable-xxhdpi/ic_notification.png
Executable file
After Width: | Height: | Size: 2 KiB |
|
@ -81,24 +81,21 @@ public class Notifier
|
|||
|
||||
public NotificationCompat.Builder getBuilder()
|
||||
{
|
||||
// TODO: add default initialization
|
||||
return new NotificationCompat.Builder(mContext)
|
||||
.setAutoCancel(true)
|
||||
.setSmallIcon(R.drawable.ic_launcher);
|
||||
.setSmallIcon(R.drawable.ic_notification);
|
||||
}
|
||||
|
||||
public void placeGuideAvailable(String guideName, String packageName, String country)
|
||||
{
|
||||
// TODO: Add string resources
|
||||
final String title = String.format("Going to %s?", country);
|
||||
final String content = String.format("%s will help you!", guideName);
|
||||
final String title = mContext.getString(R.string.noti_guide_title, country);
|
||||
final String content = mContext.getString(R.string.noti_guide_content, guideName);
|
||||
|
||||
final PendingIntent pi = PendingIntent
|
||||
.getActivity(mContext, 0, GuidesUtils.getGoogleStoreIntentForPackage(packageName), 0);
|
||||
|
||||
final Notification guideNoti = new NotificationCompat.Builder(mContext)
|
||||
.setAutoCancel(true)
|
||||
.setSmallIcon(R.drawable.ic_notification)
|
||||
final Notification guideNoti = getBuilder()
|
||||
.setContentIntent(pi)
|
||||
.setContentTitle(title)
|
||||
.setContentText(content)
|
||||
|
|