Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java

Issue 972303002: Fix RoundedIconGenerator font scaling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/preferences/website/WebsitePreference.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java b/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java
index d67a1eb052cdec353e0338ed796431ebcf55bf73..7665c5f0c9f6f14e7a65b8c499d594be4777e381 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java
@@ -303,12 +303,11 @@ public class NotificationUIManager {
res.getDimensionPixelSize(android.R.dimen.notification_large_icon_height);
return new RoundedIconGenerator(
- appContext,
- (int) (widthPx / density),
- (int) (heightPx / density),
- (int) (Math.min(widthPx, heightPx) / density / 2),
+ widthPx,
+ heightPx,
+ Math.min(widthPx, heightPx) / 2,
NOTIFICATION_ICON_BG_COLOR,
- NOTIFICATION_TEXT_SIZE_DP);
+ NOTIFICATION_TEXT_SIZE_DP * density);
}
/**
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/preferences/website/WebsitePreference.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698