Merge "Fixing issue where AppWidget service was being hit regardless of caching in RemoteViewsAdapter. (3467340)" into honeycomb-mr1
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user