Merge "Fixing issue where AppWidget service was being hit regardless of caching in RemoteViewsAdapter. (3467340)" into honeycomb-mr1

This commit is contained in:
Winson Chung
2011-03-07 10:21:11 -08:00
committed by Android (Google) Code Review

View File

@@ -889,7 +889,7 @@ public class RemoteViewsAdapter extends BaseAdapter implements Handler.Callback
boolean isConnected = mServiceConnection.isConnected(); boolean isConnected = mServiceConnection.isConnected();
boolean hasNewItems = false; boolean hasNewItems = false;
if (!isConnected) { if (!isInCache && !isConnected) {
// Requesting bind service will trigger a super.notifyDataSetChanged(), which will // Requesting bind service will trigger a super.notifyDataSetChanged(), which will
// in turn trigger another request to getView() // in turn trigger another request to getView()
requestBindService(); requestBindService();