Added logging to pinpoint source of bug
Sometimes the airplane mode banner will show up even though airplane mode is not on. Logging has been added to several areas around this condition in addition to where the actual view is created. This will be used to try and get a better handle on what the source of the bug is. Test: manual Bug: 30860132 Change-Id: I7213aa7e187c5a8c0e94a5ce7a3269e6667cd61b
This commit is contained in:
@@ -177,9 +177,12 @@ public class DashboardSummary extends InstrumentedFragment
|
||||
public void onWindowFocusChanged(boolean hasWindowFocus) {
|
||||
long startTime = System.currentTimeMillis();
|
||||
if (hasWindowFocus) {
|
||||
Log.d(TAG, "Listening for condition changes");
|
||||
mConditionManager.addListener(this);
|
||||
Log.d(TAG, "conditions refreshed");
|
||||
mConditionManager.refreshAll();
|
||||
} else {
|
||||
Log.d(TAG, "Stopped listening for condition changes");
|
||||
mConditionManager.remListener(this);
|
||||
}
|
||||
if (DEBUG_TIMING) {
|
||||
@@ -220,6 +223,7 @@ public class DashboardSummary extends InstrumentedFragment
|
||||
mDashboard.setHasFixedSize(true);
|
||||
mDashboard.addItemDecoration(new DashboardDecorator(getContext()));
|
||||
mDashboard.setListener(this);
|
||||
Log.d(TAG, "adapter created");
|
||||
mAdapter = new DashboardAdapter(getContext(), mSuggestionParser, mMetricsFeatureProvider,
|
||||
bundle, mConditionManager.getConditions());
|
||||
mDashboard.setAdapter(mAdapter);
|
||||
|
Reference in New Issue
Block a user