Skip to content

Commit

Permalink
AlarmEvent
Browse files Browse the repository at this point in the history
fixes alarm UI bug where the event icon and text are out of alignment
  • Loading branch information
forrestguice committed Oct 9, 2023
1 parent fa01950 commit 3f1babc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public String getTitle() {

@Nullable
public String getSummary() {
return (event != null ? "" : summary);
return (event != null ? null : summary);
}

@Nullable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ public void test_AlarmEventItem_new(SolarEvents event)
assertEquals(item0.getEventID(), event.name());
assertEquals(item0.getTitle(), event.getLongDisplayString());
assertEquals(item0.getTitle(), item0.toString());
assertNotNull(item0.getSummary());
assertTrue(item0.getSummary().isEmpty());
assertNull(item0.getSummary());
assertNull(item0.phrase);
//assertEquals(item0.getIcon(null), event.getIcon()); // requires non-null context
assertNull(item0.getUri());
Expand Down Expand Up @@ -110,8 +109,7 @@ public void test_AlarmEventItem_new(String enumName)

assertEquals(item1.getTitle(), event1.getLongDisplayString());
assertEquals(item1.getTitle(), item1.toString());
assertNotNull(item1.getSummary());
assertTrue(item1.getSummary().isEmpty());
assertNull(item1.getSummary());
assertNull(item1.phrase);
}

Expand Down

0 comments on commit 3f1babc

Please sign in to comment.