[and] New resources.

This commit is contained in:
Dmitry Kunin 2013-08-23 18:47:06 +03:00 committed by Alex Zolotarev
parent 395b186712
commit 2e3efc1c0c
9 changed files with 4 additions and 7 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 910 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 607 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 591 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

View file

@ -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)