Skip to content

Commit

Permalink
set onclick listener on frame layout
Browse files Browse the repository at this point in the history
FINALLY, after years, vanilla music will also start if the widget is cold or the playing song has no cover.
  • Loading branch information
adrian-bl committed Jan 23, 2023
1 parent 3f6aeff commit ca6d7a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public static void updateWidget(Context context, AppWidgetManager manager, Song

intent = new Intent(context, LibraryActivity.class).setAction(Intent.ACTION_MAIN);
pendingIntent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_IMMUTABLE);
views.setOnClickPendingIntent(R.id.cover, pendingIntent);
views.setOnClickPendingIntent(R.id.coverFrame, pendingIntent);
views.setOnClickPendingIntent(R.id.text_layout, pendingIntent);

intent = ShortcutPseudoActivity.getIntent(context, PlaybackService.ACTION_TOGGLE_PLAYBACK);
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/four_white_widget.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ THE SOFTWARE.
android:baselineAligned="false"
android:orientation="horizontal" >
<FrameLayout
android:id="@+id/frameLayout1"
android:id="@+id/coverFrame"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:padding="5dp" >
Expand Down

0 comments on commit ca6d7a9

Please sign in to comment.