Skip to content

Commit

Permalink
fix crash with spring gear
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipthelen committed Mar 19, 2016
1 parent b669fc4 commit 103c836
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Habitica/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.habitrpg.android.habitica"
android:versionCode="46"
android:versionName="0.0.27.1"
android:versionCode="47"
android:versionName="0.0.27.2"
android:screenOrientation="portrait"
android:installLocation="auto" >

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
import com.raizlabs.android.dbflow.sql.builder.Condition;
import com.raizlabs.android.dbflow.sql.language.OrderBy;
import com.raizlabs.android.dbflow.sql.language.Select;
import com.raizlabs.android.dbflow.structure.BaseModel;

import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.Subscribe;
Expand Down Expand Up @@ -212,10 +213,11 @@ public int getItemViewType(int position) {
@Override
public long getItemId(int position) {
Task task = filteredObservableContent.get(position);
if (task.getId() != null && task.getId().length() == 36) {
try {
return UUID.fromString(task.getId()).getMostSignificantBits();
} catch (IllegalArgumentException e) {
return UUID.randomUUID().getMostSignificantBits();
}
return UUID.randomUUID().getMostSignificantBits();
}

@Override
Expand Down

0 comments on commit 103c836

Please sign in to comment.