Status bar fixes
This commit is contained in:
@ -35,7 +35,7 @@ class StatusBar {
|
|||||||
|
|
||||||
int icon = ICON_STARTING;
|
int icon = ICON_STARTING;
|
||||||
// won't be shown if replace() is called
|
// won't be shown if replace() is called
|
||||||
String text = "Starting I2P";
|
String text = ctx.getString(R.string.notification_status_starting);
|
||||||
|
|
||||||
mNotifyBuilder = new NotificationCompat.Builder(ctx)
|
mNotifyBuilder = new NotificationCompat.Builder(ctx)
|
||||||
.setContentText(text)
|
.setContentText(text)
|
||||||
@ -53,16 +53,15 @@ class StatusBar {
|
|||||||
replace(icon, mCtx.getString(textResource));
|
replace(icon, mCtx.getString(textResource));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void replace(int icon, String text) {
|
public void replace(int icon, String title) {
|
||||||
mNotifyBuilder.setSmallIcon(icon)
|
mNotifyBuilder.setSmallIcon(icon)
|
||||||
.setStyle(null)
|
.setStyle(null)
|
||||||
.setTicker(text);
|
.setTicker(title);
|
||||||
update(text);
|
update(title);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void update(String text) {
|
public void update(String title) {
|
||||||
String title = "I2P Status";
|
update(title, null);
|
||||||
update(title, text);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void update(String title, String text, String bigText) {
|
public void update(String title, String text, String bigText) {
|
||||||
|
Reference in New Issue
Block a user