Skip to content

Commit

Permalink
Update for version 2.0.3/9
Browse files Browse the repository at this point in the history
  • Loading branch information
mgod committed Feb 17, 2016
1 parent ee4ccd1 commit 79d9605
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 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.0.0'
classpath 'com.android.tools.build:gradle:1.5.0'
}
}

Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true

VERSION_NAME=2.0.2
VERSION_CODE=8
VERSION_NAME=2.0.3
VERSION_CODE=9
GROUP=com.splitwise

ANDROID_BUILD_MIN_SDK_VERSION=14
ANDROID_BUILD_TARGET_SDK_VERSION=21
ANDROID_BUILD_SDK_VERSION=21
ANDROID_BUILD_TOOLS_VERSION=21.1.2
ANDROID_BUILD_TOOLS_VERSION=23.0.2

POM_DESCRIPTION=Android Token AutoComplete EditText
POM_URL=https://github.com/splitwise/TokenAutoComplete
Expand Down
2 changes: 1 addition & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ task jar(type: Jar) {
}

dependencies {
compile 'com.android.support:support-annotations:21.0.2'
compile 'com.android.support:support-annotations:23.1.1'
}

apply from: 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle'
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
/**
* Gmail style auto complete view with easy token customization
* override getViewForObject to provide your token view
* <p/>
* <br>
* Created by mgod on 9/12/13.
*
* @author mgod
Expand Down Expand Up @@ -256,6 +256,12 @@ public void setTokenListener(TokenListener<T> l) {
listener = l;
}

/**
* Override if you want to prevent a token from being removed. Defaults to true.
* @param token the token to check
* @return false if the token should not be removed, true if it's ok to remove it.
*/
@SuppressWarnings("unused")
public boolean isTokenRemovable(T token) {
return true;
}
Expand Down Expand Up @@ -329,7 +335,7 @@ private boolean isSplitChar(char c) {
/**
* Sets whether to allow duplicate objects. If false, when the user selects
* an object that's already in the view, the current text is just cleared.
* <p/>
* <br>
* Defaults to true. Requires that the objects implement equals() correctly.
*
* @param allow boolean
Expand Down Expand Up @@ -1388,6 +1394,8 @@ public SavedState[] newArray(int size) {

/**
* Checks if selection can be deleted. This method is called from TokenInputConnection .
* @param beforeLength the number of characters before the current selection end to check
* @return true if there are no non-deletable pieces of the section
*/
@SuppressWarnings("unused")
public boolean canDeleteSelection(int beforeLength) {
Expand Down

0 comments on commit 79d9605

Please sign in to comment.