ShareSDK's default Sina Weibo shared editing box contains more than 140 words. sharesdk140

Source: Internet
Author: User

ShareSDK's default Sina Weibo shared editing box contains more than 140 words. sharesdk140


There is a remaining word count in the bottom right corner of the symptom. However, when it turns into a negative number, it can still be shared successfully.

Therefore, we have to limit negative numbers to avoid sharing.




Solution:

In the EditPage. java of the cn. sharesdk. onekeyshare. theme. classic package

<Span style = "font-size: 18px;"> if (v. equals (llTitle. <span style = "font-family: Arial, Helvetica, sans-serif; background-color: rgb (255,255,255);"> Add the following judgment code after getBtnRight: </span>


<Span style = "font-size: 18px;"> if (v. equals (llTitle. getBtnRight () {if (Integer. valueOf (tvCounter. getText (). toString () <0 & platformList! = Null & platformList. length> 0 & platformList [0]. getName (). equals (SinaWeibo O. NAME) {<span style = "white-space: pre"> </span> Toast. makeText (activity, "exceeds the maximum number of words, Please re-enter", Toast. LENGTH_LONG ). show (); return ;}</span>
<span style="font-size:18px;"><span style="white-space:pre"></span>...</span>
<span style="font-size:18px;">}</span>


Since then, when Weibo has shared more than 140 words, the system prompts that the number of words has exceeded the limit. Please try again.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.