made whole widget clickable

This commit is contained in:
Ronald Schaten 2011-06-08 14:33:35 +02:00
parent c0d227629a
commit a6f93ff8b0

View File

@ -77,7 +77,7 @@ public class WaldemarWidget extends AppWidgetProvider {
// Create an Intent to launch PreferenceActivity // Create an Intent to launch PreferenceActivity
Intent intent = new Intent(context, WaldemarPreferences.class); Intent intent = new Intent(context, WaldemarPreferences.class);
PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, 0); 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); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
remoteViews.setTextViewText(R.id.name, prefs.getString("pref_name", context.getString(R.string.title))); remoteViews.setTextViewText(R.id.name, prefs.getString("pref_name", context.getString(R.string.title)));