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.