Skip to content

Commit

Permalink
Prevent crash with improper partner config
Browse files Browse the repository at this point in the history
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: Ife0dd1d87e8aa9eb7fd2c7c94e54131071dcd862
  • Loading branch information
neobuddy89 committed Mar 20, 2022
1 parent 54490ff commit 0450c92
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ private static void saveButtonDefaultTextColor(Button button) {

private static ColorStateList getButtonDefaultTextCorlor(Button button) {
if (!defaultTextColor.containsKey(button.getId())) {
throw new IllegalStateException("There is no saved default color for button");
return button.getTextColors();
}
return defaultTextColor.get(button.getId());
}
Expand Down

0 comments on commit 0450c92

Please sign in to comment.