Skip to content

Commit

Permalink
share colors
Browse files Browse the repository at this point in the history
fixes bug where share action fails to work on default colors
  • Loading branch information
forrestguice committed Dec 21, 2024
1 parent 3819d2b commit 52d7306
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,11 @@ protected void onShareColors()
Context context = getActivity();
if (colorCollection != null && context != null)
{
ColorValues colors = colorCollection.getSelectedColors(context, getAppWidgetID(), getColorTag());
ColorValues colors = colorCollection.getColors(context, getSelectedID());
if (colors == null) {
colors = colorCollection.getDefaultColors(context);
}

if (colors != null)
{
Intent intent = new Intent(Intent.ACTION_SEND);
Expand Down

0 comments on commit 52d7306

Please sign in to comment.