Merge \"QS Edit: Fix auto-selecting add location\" into nyc-dev

am: dd65ee628f

Change-Id: I33256558f03d993c88520ff50d4bab915ee7ccbd
This commit is contained in:
Jason Monk
2016-06-17 20:28:14 +00:00
committed by android-build-merger

View File

@@ -37,6 +37,7 @@ import android.view.ViewGroup;
import android.view.accessibility.AccessibilityManager;
import android.widget.FrameLayout;
import android.widget.TextView;
import com.android.internal.logging.MetricsLogger;
import com.android.internal.logging.MetricsProto;
import com.android.systemui.R;
@@ -227,6 +228,8 @@ public class TileAdapter extends RecyclerView.Adapter<Holder> implements TileSta
});
if (mNeedsFocus) {
// Wait for this to get laid out then set its focus.
// Ensure that tile gets laid out so we get the callback.
holder.mTileView.requestLayout();
holder.mTileView.addOnLayoutChangeListener(new OnLayoutChangeListener() {
@Override
public void onLayoutChange(View v, int left, int top, int right, int bottom,