Skip to content

Commit

Permalink
Merge pull request #256 from a-mehta/master
Browse files Browse the repository at this point in the history
Clear sections when focus changes, updated gradle
  • Loading branch information
mgod authored Sep 16, 2016
2 parents 3968d5d + 983ac4c commit ad0c64e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
classpath 'com.android.tools.build:gradle:2.1.3'
}
}

Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Dec 17 18:27:18 CET 2014
#Fri Sep 16 11:36:56 EDT 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,9 @@ public void onFocusChanged(boolean hasFocus, int direction, Rect previous) {
// See if the user left any unfinished tokens and finish them
if (!hasFocus) performCompletion();

// Clear sections when focus changes to avoid a token remaining selected
clearSelections();

// Collapse the view to a single line
if (allowCollapse) performCollapse(hasFocus);
}
Expand Down

0 comments on commit ad0c64e

Please sign in to comment.