Skip to content

Commit

Permalink
fix focus bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeger committed Sep 19, 2016
1 parent 6275b05 commit 4ec41ae
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ android {
}

dependencies {
compile 'com.android.support:appcompat-v7:24.+'
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:24.+'
testCompile 'junit:junit:4.12'
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ public boolean onLongClick(View v) {
return true;
}
});
mTextView.setFocusableInTouchMode(true);

mTextView.setOnTouchListener(new View.OnTouchListener() {
@Override
Expand Down
1 change: 1 addition & 0 deletions sample/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">

<TextView
android:id="@+id/tv_test"
android:layout_width="match_parent"
Expand Down

0 comments on commit 4ec41ae

Please sign in to comment.