クラッシュレポート対応

This commit is contained in:
tateisu 2019-03-14 15:55:01 +09:00
parent 150381be7a
commit 7436c82819
1 changed files with 9 additions and 6 deletions

View File

@ -162,8 +162,6 @@ internal class PopupAutoCompleteAcct(
updatePosition()
}
private fun findShortCode(acct : String) : String {
val m = reLastShortCode.matcher(acct)
if(m.find()) return m.group(0)
@ -195,9 +193,14 @@ internal class PopupAutoCompleteAcct(
val layout = etContent.layout
popup_top = (text_top
popup_top = try {
(text_top
+ etContent.totalPaddingTop
+ layout.getLineBottom(layout.lineCount - 1)) - etContent.scrollY
} catch(ex : Throwable) {
// java.lang.IllegalStateException
0
}
if(popup_top < form_top) popup_top = form_top