Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
com.ccwangluo.accelerator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sheteng
com.ccwangluo.accelerator
Commits
8b651ec7
Commit
8b651ec7
authored
Jul 13, 2018
by
Mygod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #1874
parent
400d1b9c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
2 deletions
+41
-2
mobile/src/main/java/com/github/shadowsocks/widget/HackyTextView.kt
.../main/java/com/github/shadowsocks/widget/HackyTextView.kt
+39
-0
mobile/src/main/res/layout/layout_about.xml
mobile/src/main/res/layout/layout_about.xml
+2
-2
No files found.
mobile/src/main/java/com/github/shadowsocks/widget/HackyTextView.kt
0 → 100644
View file @
8b651ec7
/*******************************************************************************
* *
* Copyright (C) 2018 by Max Lv <max.c.lv@gmail.com> *
* Copyright (C) 2018 by Mygod Studio <contact-shadowsocks-android@mygod.be> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
package
com.github.shadowsocks.widget
import
android.content.Context
import
android.util.AttributeSet
import
android.view.MotionEvent
import
android.widget.TextView
import
com.crashlytics.android.Crashlytics
class
HackyTextView
@JvmOverloads
constructor
(
context
:
Context
,
attrs
:
AttributeSet
?
=
null
,
defStyleAttr
:
Int
=
0
,
defStyleRes
:
Int
=
0
)
:
TextView
(
context
,
attrs
,
defStyleAttr
,
defStyleRes
)
{
override
fun
onTouchEvent
(
event
:
MotionEvent
?)
=
try
{
super
.
onTouchEvent
(
event
)
}
catch
(
e
:
IndexOutOfBoundsException
)
{
e
.
printStackTrace
()
Crashlytics
.
logException
(
e
)
false
}
}
mobile/src/main/res/layout/layout_about.xml
View file @
8b651ec7
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:scrollbars=
"vertical"
>
android:scrollbars=
"vertical"
>
<TextView
<
com.github.shadowsocks.widget.Hacky
TextView
android:id=
"@+id/tv_about"
android:id=
"@+id/tv_about"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment