File tree Expand file tree Collapse file tree 4 files changed +15
-7
lines changed
src/main/java/com/tokenautocomplete Expand file tree Collapse file tree 4 files changed +15
-7
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
2222GROUP =com.splitwise
2323
2424ANDROID_BUILD_MIN_SDK_VERSION =14
2525ANDROID_BUILD_TARGET_SDK_VERSION =21
2626ANDROID_BUILD_SDK_VERSION =21
27- ANDROID_BUILD_TOOLS_VERSION =21.1 .2
27+ ANDROID_BUILD_TOOLS_VERSION =23.0 .2
2828
2929POM_DESCRIPTION =Android Token AutoComplete EditText
3030POM_URL =https://github.com/splitwise/TokenAutoComplete
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ task jar(type: Jar) {
3030}
3131
3232dependencies {
33- compile ' com.android.support:support-annotations:21.0.2 '
33+ compile ' com.android.support:support-annotations:23.1.1 '
3434}
3535
3636apply from : ' https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle'
Original file line number Diff line number Diff line change 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 ) {
You can’t perform that action at this time.
0 commit comments