Fix format string.
Explicitly mark boolean arguments as such. Add missing formatting flag. Caught by Error Prone. Bug: 27723540 Change-Id: Id296dab30f7add6f0ec9ddea67141fab6a2ef578
This commit is contained in:
@@ -508,8 +508,8 @@ public class ZenModeHelper {
|
||||
pw.println(config);
|
||||
return;
|
||||
}
|
||||
pw.printf("allow(calls=%s,callsFrom=%s,repeatCallers=%s,messages=%s,messagesFrom=%s,"
|
||||
+ "events=%s,reminders=%s,whenScreenOff,whenScreenOn=%s)\n",
|
||||
pw.printf("allow(calls=%b,callsFrom=%s,repeatCallers=%b,messages=%b,messagesFrom=%s,"
|
||||
+ "events=%b,reminders=%b,whenScreenOff=%b,whenScreenOn=%b)\n",
|
||||
config.allowCalls, ZenModeConfig.sourceToString(config.allowCallsFrom),
|
||||
config.allowRepeatCallers, config.allowMessages,
|
||||
ZenModeConfig.sourceToString(config.allowMessagesFrom),
|
||||
|
||||
Reference in New Issue
Block a user