Messaging: Let there be lambdas
Change-Id: Iee1fc46c92ea9159abb10d92d34baee937bdee0c
This commit is contained in:
@@ -129,13 +129,8 @@ public class BugleCarrierConfigValuesLoader implements CarrierConfigValuesLoader
|
||||
try {
|
||||
parser = subContext.getResources().getXml(R.xml.mms_config);
|
||||
final ApnsXmlProcessor processor = ApnsXmlProcessor.get(parser);
|
||||
processor.setMmsConfigHandler(new ApnsXmlProcessor.MmsConfigHandler() {
|
||||
@Override
|
||||
public void process(final String mccMnc, final String key, final String value,
|
||||
final String type) {
|
||||
update(values, type, key, value);
|
||||
}
|
||||
});
|
||||
processor.setMmsConfigHandler((mccMnc, key, value, type) ->
|
||||
update(values, type, key, value));
|
||||
processor.process();
|
||||
} catch (final Resources.NotFoundException e) {
|
||||
LogUtil.w(LogUtil.BUGLE_TAG, "Can not find mms_config.xml");
|
||||
|
||||
Reference in New Issue
Block a user