Merge "QS Edit: Fix auto-selecting add location" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
dd65ee628f
@@ -37,6 +37,7 @@ import android.view.ViewGroup;
|
|||||||
import android.view.accessibility.AccessibilityManager;
|
import android.view.accessibility.AccessibilityManager;
|
||||||
import android.widget.FrameLayout;
|
import android.widget.FrameLayout;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
import com.android.internal.logging.MetricsLogger;
|
import com.android.internal.logging.MetricsLogger;
|
||||||
import com.android.internal.logging.MetricsProto;
|
import com.android.internal.logging.MetricsProto;
|
||||||
import com.android.systemui.R;
|
import com.android.systemui.R;
|
||||||
@@ -227,6 +228,8 @@ public class TileAdapter extends RecyclerView.Adapter<Holder> implements TileSta
|
|||||||
});
|
});
|
||||||
if (mNeedsFocus) {
|
if (mNeedsFocus) {
|
||||||
// Wait for this to get laid out then set its focus.
|
// 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() {
|
holder.mTileView.addOnLayoutChangeListener(new OnLayoutChangeListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onLayoutChange(View v, int left, int top, int right, int bottom,
|
public void onLayoutChange(View v, int left, int top, int right, int bottom,
|
||||||
|
|||||||
Reference in New Issue
Block a user