Snap for 6670641 from a4afb4742a to rvc-qpr1-release
Change-Id: I2c16e766bf6c0b4724a8e1c7d61fd79feab51ed3
This commit is contained in:
@@ -36,7 +36,8 @@ public class AppSwitchPreference extends SwitchPreference {
|
|||||||
super.onBindViewHolder(holder);
|
super.onBindViewHolder(holder);
|
||||||
final View switchView = holder.findViewById(android.R.id.switch_widget);
|
final View switchView = holder.findViewById(android.R.id.switch_widget);
|
||||||
if (switchView != null) {
|
if (switchView != null) {
|
||||||
switchView.setFilterTouchesWhenObscured(true);
|
final View rootView = switchView.getRootView();
|
||||||
|
rootView.setFilterTouchesWhenObscured(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,7 +52,8 @@ public class FilterTouchesRestrictedSwitchPreference extends RestrictedSwitchPre
|
|||||||
super.onBindViewHolder(holder);
|
super.onBindViewHolder(holder);
|
||||||
final View switchView = holder.findViewById(android.R.id.switch_widget);
|
final View switchView = holder.findViewById(android.R.id.switch_widget);
|
||||||
if (switchView != null) {
|
if (switchView != null) {
|
||||||
switchView.setFilterTouchesWhenObscured(true);
|
final View rootView = switchView.getRootView();
|
||||||
|
rootView.setFilterTouchesWhenObscured(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,7 +50,8 @@ public class FilterTouchesSwitchPreference extends SwitchPreference {
|
|||||||
super.onBindViewHolder(holder);
|
super.onBindViewHolder(holder);
|
||||||
final View switchView = holder.findViewById(android.R.id.switch_widget);
|
final View switchView = holder.findViewById(android.R.id.switch_widget);
|
||||||
if (switchView != null) {
|
if (switchView != null) {
|
||||||
switchView.setFilterTouchesWhenObscured(true);
|
final View rootView = switchView.getRootView();
|
||||||
|
rootView.setFilterTouchesWhenObscured(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user