Skip to content

Commit

Permalink
Fix the problem of finding error on Turkey phones.
Browse files Browse the repository at this point in the history
  • Loading branch information
sinyu890807 committed Mar 2, 2015
1 parent c5a1ee1 commit 81f4330
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
3 changes: 0 additions & 3 deletions library/src/org/litepal/crud/DataSupport.java
Original file line number Diff line number Diff line change
Expand Up @@ -705,9 +705,6 @@ public static synchronized int delete(Class<?> modelClass, long id) {
* This means that all the records which name is Tom and age is 14 will be
* removed.<br>
*
* Note that this method won't delete the referenced data in other tables.
* You should remove those values by your own.
*
* @param modelClass
* Which table to delete from by class.
* @param conditions
Expand Down
2 changes: 0 additions & 2 deletions library/src/org/litepal/crud/DeleteHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import org.litepal.util.BaseUtility;
import org.litepal.util.Const;
import org.litepal.util.DBUtility;
import org.litepal.util.LogUtil;

import android.database.sqlite.SQLiteDatabase;

Expand Down Expand Up @@ -209,7 +208,6 @@ private int deleteCascade(Class<?> modelClass, long id) {
}

private int deleteAllCascade(Class<?> modelClass, String... conditions) {
LogUtil.d(TAG, "conditions is " + conditions + " length is " + conditions.length);
int rowsAffected = 0;
for (String associatedTableName : getForeignKeyTableToDelete()) {
String tableName = getTableName(modelClass);
Expand Down
6 changes: 3 additions & 3 deletions library/src/org/litepal/util/BaseUtility.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ public static String changeCase(String string) {
if (Const.LitePal.CASES_KEEP.equals(cases)) {
return string;
} else if (Const.LitePal.CASES_UPPER.equals(cases)) {
return string.toUpperCase(Locale.getDefault());
return string.toUpperCase(Locale.US);
}
return string.toLowerCase(Locale.getDefault());
return string.toLowerCase(Locale.US);
}
return null;
}
Expand Down Expand Up @@ -103,7 +103,7 @@ public static boolean containsIgnoreCases(Collection<String> collection, String
*/
public static String capitalize(String string) {
if (!TextUtils.isEmpty(string)) {
return string.substring(0, 1).toUpperCase(Locale.getDefault()) + string.substring(1);
return string.substring(0, 1).toUpperCase(Locale.US) + string.substring(1);
}
return string == null ? null : "";
}
Expand Down

0 comments on commit 81f4330

Please sign in to comment.