Merge "Accessibility shortcut secondary action - auto hide divider in shortcutPreference"
This commit is contained in:
@@ -87,6 +87,7 @@
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:id="@+id/divider"
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginTop="16dp"
|
||||
|
@@ -73,9 +73,11 @@ public class ShortcutPreference extends Preference {
|
||||
}
|
||||
|
||||
final View settings = holder.itemView.findViewById(android.R.id.widget_frame);
|
||||
if (settings != null) {
|
||||
final View divider = holder.itemView.findViewById(R.id.divider);
|
||||
if (settings != null && divider != null) {
|
||||
settings.setOnClickListener(view -> callOnSettingsClicked());
|
||||
settings.setVisibility(mSettingsVisibility);
|
||||
divider.setVisibility(mSettingsVisibility);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user