Merge changes I75d810e4,I50111f0c into udc-qpr-dev am: 290d241b1b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/23738691 Change-Id: I7c32cba3253b5f5811269ebe5a37099bbb8eb66c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -130,10 +130,17 @@ public abstract class AccessibilityQuickSettingsPrimarySwitchPreferenceControlle
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mTooltipWindow = new AccessibilityQuickSettingsTooltipWindow(mContext);
|
// TODO (287728819): Move tooltip showing to SystemUI
|
||||||
mTooltipWindow.setup(getTileTooltipContent(),
|
// Since the lifecycle of controller is independent of that of the preference, doing
|
||||||
R.drawable.accessibility_auto_added_qs_tooltip_illustration);
|
// null check on switch is a temporary solution for the case that switch view
|
||||||
mTooltipWindow.showAtTopCenter(mPreference.getSwitch());
|
// is not ready when we would like to show the tooltip. If the switch is not ready,
|
||||||
|
// we give up showing the tooltip and also do not reshow it in the future.
|
||||||
|
if (mPreference.getSwitch() != null) {
|
||||||
|
mTooltipWindow = new AccessibilityQuickSettingsTooltipWindow(mContext);
|
||||||
|
mTooltipWindow.setup(getTileTooltipContent(),
|
||||||
|
R.drawable.accessibility_auto_added_qs_tooltip_illustration);
|
||||||
|
mTooltipWindow.showAtTopCenter(mPreference.getSwitch());
|
||||||
|
}
|
||||||
AccessibilityQuickSettingUtils.optInValueToSharedPreferences(mContext, tileComponentName);
|
AccessibilityQuickSettingUtils.optInValueToSharedPreferences(mContext, tileComponentName);
|
||||||
mNeedsQSTooltipReshow = false;
|
mNeedsQSTooltipReshow = false;
|
||||||
}
|
}
|
||||||
|
@@ -213,11 +213,19 @@ abstract class PreviewSizeSeekBarController extends BasePreferenceController imp
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mTooltipWindow = new AccessibilityQuickSettingsTooltipWindow(mContext);
|
// TODO (287728819): Move tooltip showing to SystemUI
|
||||||
mTooltipWindow.setup(getTileTooltipContent(),
|
// Since the lifecycle of controller is independent of that of the preference, doing
|
||||||
R.drawable.accessibility_auto_added_qs_tooltip_illustration);
|
// null check on seekbar is a temporary solution for the case that seekbar view
|
||||||
mTooltipWindow.showAtTopCenter(mSeekBarPreference.getSeekbar());
|
// is not ready when we would like to show the tooltip. If the seekbar is not ready,
|
||||||
AccessibilityQuickSettingUtils.optInValueToSharedPreferences(mContext, tileComponentName);
|
// we give up showing the tooltip and also do not reshow it in the future.
|
||||||
|
if (mSeekBarPreference.getSeekbar() != null) {
|
||||||
|
mTooltipWindow = new AccessibilityQuickSettingsTooltipWindow(mContext);
|
||||||
|
mTooltipWindow.setup(getTileTooltipContent(),
|
||||||
|
R.drawable.accessibility_auto_added_qs_tooltip_illustration);
|
||||||
|
mTooltipWindow.showAtTopCenter(mSeekBarPreference.getSeekbar());
|
||||||
|
}
|
||||||
|
AccessibilityQuickSettingUtils.optInValueToSharedPreferences(mContext,
|
||||||
|
tileComponentName);
|
||||||
mNeedsQSTooltipReshow = false;
|
mNeedsQSTooltipReshow = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user