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:
Alex Pakhotin 2011-07-25 19:12:21 -07:00
parent 7df8bf6eb3
commit c5574072c4

View File

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