made whole widget clickable
This commit is contained in:
parent
c0d227629a
commit
a6f93ff8b0
@ -77,7 +77,7 @@ public class WaldemarWidget extends AppWidgetProvider {
|
||||
// Create an Intent to launch PreferenceActivity
|
||||
Intent intent = new Intent(context, WaldemarPreferences.class);
|
||||
PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, 0);
|
||||
remoteViews.setOnClickPendingIntent(R.id.daycount, pendingIntent);
|
||||
remoteViews.setOnClickPendingIntent(R.id.LinearLayout01, pendingIntent);
|
||||
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
remoteViews.setTextViewText(R.id.name, prefs.getString("pref_name", context.getString(R.string.title)));
|
||||
|
Loading…
Reference in New Issue
Block a user