Add missing string and Fix Crash
This commit is contained in:
parent
df3a595ef4
commit
81d500477f
|
@ -519,7 +519,7 @@
|
||||||
<string name="user_request" comment="26 characters max for translation">User request</string>
|
<string name="user_request" comment="26 characters max for translation">User request</string>
|
||||||
<string name="bolus_ok" comment="26 characters max for translation">Bolus OK</string>
|
<string name="bolus_ok" comment="26 characters max for translation">Bolus OK</string>
|
||||||
<string name="pump_paired" comment="26 characters max for translation">Pump paired</string>
|
<string name="pump_paired" comment="26 characters max for translation">Pump paired</string>
|
||||||
<string name="InsightRefreshButton" comment="26 characters max for translation">Insight Refresh Button</string>
|
<string name="insight_refresh_button" comment="26 characters max for translation">Insight Refresh Button</string>
|
||||||
<string name="read_status" comment="10 characters max for READSTATUS translation">READSTATUS %1$s</string>
|
<string name="read_status" comment="10 characters max for READSTATUS translation">READSTATUS %1$s</string>
|
||||||
|
|
||||||
<plurals name="days">
|
<plurals name="days">
|
||||||
|
|
|
@ -62,7 +62,6 @@ public abstract class AbstractDanaRPlugin extends PumpPluginBase implements Pump
|
||||||
protected DateUtil dateUtil;
|
protected DateUtil dateUtil;
|
||||||
protected AapsSchedulers aapsSchedulers;
|
protected AapsSchedulers aapsSchedulers;
|
||||||
protected PumpSync pumpSync;
|
protected PumpSync pumpSync;
|
||||||
protected ResourceHelper rh;
|
|
||||||
|
|
||||||
protected AbstractDanaRPlugin(
|
protected AbstractDanaRPlugin(
|
||||||
HasAndroidInjector injector,
|
HasAndroidInjector injector,
|
||||||
|
@ -112,7 +111,7 @@ public abstract class AbstractDanaRPlugin extends PumpPluginBase implements Pump
|
||||||
if (event.isChanged(getRh(), R.string.key_danar_bt_name)) {
|
if (event.isChanged(getRh(), R.string.key_danar_bt_name)) {
|
||||||
danaPump.reset();
|
danaPump.reset();
|
||||||
pumpSync.connectNewPump();
|
pumpSync.connectNewPump();
|
||||||
getCommandQueue().readStatus(rh.gs(R.string.device_changed), null);
|
getCommandQueue().readStatus(getRh().gs(R.string.device_changed), null);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
|
@ -149,7 +149,7 @@ public class LocalInsightFragment extends DaggerFragment implements View.OnClick
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
commandQueue.readStatus("InsightRefreshButton", refreshCallback);
|
commandQueue.readStatus(rh.gs(R.string.insight_refresh_button), refreshCallback);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue