Loading core/java/android/widget/TextView.java +3 −1 Original line number Diff line number Diff line Loading @@ -14995,7 +14995,9 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener } boolean canShare() { if (!getContext().canStartActivityForResult() || !isDeviceProvisioned()) { if (!getContext().canStartActivityForResult() || !isDeviceProvisioned() || !getContext().getResources().getBoolean( com.android.internal.R.bool.config_textShareSupported)) { return false; } return canCopy(); core/res/res/values/config.xml +4 −0 Original line number Diff line number Diff line Loading @@ -6592,6 +6592,10 @@ for the non-customized ones. --> <string name="config_hapticFeedbackCustomizationFile" /> <!-- Enables or disables the "Share" action item shown in the context menu that appears upon long-pressing on selected text. Enabled by default. --> <bool name="config_textShareSupported">true</bool> <!-- Whether or not ActivityManager PSS profiling is disabled. --> <bool name="config_am_disablePssProfiling">false</bool> </resources> core/res/res/values/symbols.xml +1 −0 Original line number Diff line number Diff line Loading @@ -3049,6 +3049,7 @@ <java-symbol type="id" name="addToDictionaryButton" /> <java-symbol type="id" name="deleteButton" /> <!-- TextView --> <java-symbol type="bool" name="config_textShareSupported" /> <java-symbol type="string" name="failed_to_copy_to_clipboard" /> <java-symbol type="id" name="notification_material_reply_container" /> Loading Loading
core/java/android/widget/TextView.java +3 −1 Original line number Diff line number Diff line Loading @@ -14995,7 +14995,9 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener } boolean canShare() { if (!getContext().canStartActivityForResult() || !isDeviceProvisioned()) { if (!getContext().canStartActivityForResult() || !isDeviceProvisioned() || !getContext().getResources().getBoolean( com.android.internal.R.bool.config_textShareSupported)) { return false; } return canCopy();
core/res/res/values/config.xml +4 −0 Original line number Diff line number Diff line Loading @@ -6592,6 +6592,10 @@ for the non-customized ones. --> <string name="config_hapticFeedbackCustomizationFile" /> <!-- Enables or disables the "Share" action item shown in the context menu that appears upon long-pressing on selected text. Enabled by default. --> <bool name="config_textShareSupported">true</bool> <!-- Whether or not ActivityManager PSS profiling is disabled. --> <bool name="config_am_disablePssProfiling">false</bool> </resources>
core/res/res/values/symbols.xml +1 −0 Original line number Diff line number Diff line Loading @@ -3049,6 +3049,7 @@ <java-symbol type="id" name="addToDictionaryButton" /> <java-symbol type="id" name="deleteButton" /> <!-- TextView --> <java-symbol type="bool" name="config_textShareSupported" /> <java-symbol type="string" name="failed_to_copy_to_clipboard" /> <java-symbol type="id" name="notification_material_reply_container" /> Loading