Updating widget due to API changes.
Change-Id: I8623c48e912330145cfd325c962574d322ccc6f0
This commit is contained in:
parent
3407d9683e
commit
cb8a5544bf
@ -501,8 +501,8 @@
|
|||||||
<!-- Email AppWidget definitions -->
|
<!-- Email AppWidget definitions -->
|
||||||
<service
|
<service
|
||||||
android:name=".provider.WidgetProvider$WidgetService"
|
android:name=".provider.WidgetProvider$WidgetService"
|
||||||
android:enabled="true"
|
android:permission="android.permission.BIND_REMOTEVIEWS"
|
||||||
android:exported="true"
|
android:exported="false"
|
||||||
/>
|
/>
|
||||||
<receiver
|
<receiver
|
||||||
android:name=".provider.WidgetProvider" >
|
android:name=".provider.WidgetProvider" >
|
||||||
|
@ -388,7 +388,7 @@ public class WidgetProvider extends AppWidgetProvider {
|
|||||||
Intent intent = new Intent(sContext, WidgetService.class);
|
Intent intent = new Intent(sContext, WidgetService.class);
|
||||||
intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, mWidgetId);
|
intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, mWidgetId);
|
||||||
intent.setData(Uri.parse(intent.toUri(Intent.URI_INTENT_SCHEME)));
|
intent.setData(Uri.parse(intent.toUri(Intent.URI_INTENT_SCHEME)));
|
||||||
views.setRemoteAdapter(R.id.message_list, intent);
|
views.setRemoteAdapter(mWidgetId, R.id.message_list, intent);
|
||||||
|
|
||||||
setupTitleAndCount(views);
|
setupTitleAndCount(views);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user