forked from github/wulkanowy-mirror
Fix notification intent (#89)
This commit is contained in:
parent
119e38254a
commit
176d17e1ec
@ -36,7 +36,8 @@
|
||||
<activity
|
||||
android:name=".ui.main.MainActivity"
|
||||
android:configChanges="orientation|screenSize"
|
||||
android:label="@string/activity_dashboard_text" />
|
||||
android:label="@string/activity_dashboard_text"
|
||||
android:launchMode="singleTop" />
|
||||
|
||||
<service
|
||||
android:name=".services.jobs.SyncJob"
|
||||
|
@ -95,7 +95,7 @@ public class SyncJob extends SimpleJobService {
|
||||
.setContentIntent(PendingIntent.getActivity(getApplicationContext(), 0,
|
||||
MainActivity.getStartIntent(getApplicationContext())
|
||||
.putExtra(MainActivity.EXTRA_CARD_ID_KEY, 0)
|
||||
, 0
|
||||
, PendingIntent.FLAG_UPDATE_CURRENT
|
||||
))
|
||||
.build());
|
||||
}
|
||||
|
@ -57,7 +57,7 @@ public class TimetableWidgetProvider extends AppWidgetProvider {
|
||||
private void setToggleIntent(RemoteViews views, Context context) {
|
||||
Intent refreshIntent = new Intent(context, TimetableWidgetProvider.class);
|
||||
refreshIntent.setAction(AppWidgetManager.ACTION_APPWIDGET_UPDATE);
|
||||
PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0,
|
||||
PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 1,
|
||||
refreshIntent, PendingIntent.FLAG_UPDATE_CURRENT);
|
||||
views.setOnClickPendingIntent(R.id.timetable_widget_toggle, pendingIntent);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user