mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 673199 - Gecko Alert "java.net.MalformedURLException: Protocol not found:" after getting an update notification that a build is available
This commit is contained in:
parent
7df8bf6eb3
commit
c5574072c4
@ -60,7 +60,6 @@ public class AlertNotification
|
||||
double mPrevPercent = -1;
|
||||
String mPrevAlertText = "";
|
||||
static final double UPDATE_THRESHOLD = .01;
|
||||
Uri mIconUri = null;
|
||||
|
||||
public AlertNotification(Context aContext, int aNotificationId, int aIcon,
|
||||
String aTitle, String aText, long aWhen) {
|
||||
@ -86,7 +85,9 @@ public class AlertNotification
|
||||
}
|
||||
|
||||
public void setCustomIcon(Uri aIconUri) {
|
||||
mIconUri = aIconUri;
|
||||
if (aIconUri == null || aIconUri.getScheme() == null)
|
||||
return;
|
||||
|
||||
// Custom view
|
||||
int layout = R.layout.notification_icon_text;
|
||||
RemoteViews view = new RemoteViews(GeckoApp.mAppContext.getPackageName(), layout);
|
||||
@ -103,7 +104,6 @@ public class AlertNotification
|
||||
} catch(Exception ex) {
|
||||
Log.e("GeckoAlert", "failed to create bitmap", ex);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void updateProgress(String aAlertText, long aProgress, long aProgressMax) {
|
||||
|
Loading…
Reference in New Issue
Block a user