Skip to content

Commit 79d9605

Browse files
committed
Update for version 2.0.3/9
1 parent ee4ccd1 commit 79d9605

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
mavenCentral()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:1.0.0'
8+
classpath 'com.android.tools.build:gradle:1.5.0'
99
}
1010
}
1111

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1818
# org.gradle.parallel=true
1919

20-
VERSION_NAME=2.0.2
21-
VERSION_CODE=8
20+
VERSION_NAME=2.0.3
21+
VERSION_CODE=9
2222
GROUP=com.splitwise
2323

2424
ANDROID_BUILD_MIN_SDK_VERSION=14
2525
ANDROID_BUILD_TARGET_SDK_VERSION=21
2626
ANDROID_BUILD_SDK_VERSION=21
27-
ANDROID_BUILD_TOOLS_VERSION=21.1.2
27+
ANDROID_BUILD_TOOLS_VERSION=23.0.2
2828

2929
POM_DESCRIPTION=Android Token AutoComplete EditText
3030
POM_URL=https://github.com/splitwise/TokenAutoComplete

library/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ task jar(type: Jar) {
3030
}
3131

3232
dependencies {
33-
compile 'com.android.support:support-annotations:21.0.2'
33+
compile 'com.android.support:support-annotations:23.1.1'
3434
}
3535

3636
apply from: 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle'

library/src/main/java/com/tokenautocomplete/TokenCompleteTextView.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
/**
4545
* Gmail style auto complete view with easy token customization
4646
* override getViewForObject to provide your token view
47-
* <p/>
47+
* <br>
4848
* Created by mgod on 9/12/13.
4949
*
5050
* @author mgod
@@ -256,6 +256,12 @@ public void setTokenListener(TokenListener<T> l) {
256256
listener = l;
257257
}
258258

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

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

0 commit comments

Comments
 (0)