Skip to content

Commit

Permalink
Fix widgets on API 15
Browse files Browse the repository at this point in the history
  • Loading branch information
iSoron committed Oct 4, 2016
1 parent 659ad2d commit e9cdfd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/org/isoron/uhabits/widgets/BaseWidget.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ public BaseWidget(@NonNull Context context, int id)

prefs = app.getComponent().getWidgetPreferences();
pendingIntentFactory = app.getComponent().getPendingIntentFactory();
dimensions = new WidgetDimensions(0, 0, 0, 0);
dimensions = new WidgetDimensions(getDefaultWidth(), getDefaultHeight(),
getDefaultWidth(), getDefaultHeight());
}

public void delete()
Expand Down

0 comments on commit e9cdfd2

Please sign in to comment.