Skip to content

Commit

Permalink
v1.4.3 - Minor change top fix reordering issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
pjcwilliamson committed Apr 23, 2022
1 parent 1ffa4cd commit 0598ba0
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
applicationId "org.williamsonministry.prayercards"
minSdkVersion 21
targetSdkVersion 30
versionCode 10
versionName '1.4.2'
versionCode 11
versionName '1.4.3'

testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,12 @@ public ViewHolder(@NonNull View itemView) {

@Override
public void onItemClear() {

//This is trying to fix a rare bug when I think two cards get the same list order somehow. Hard to recreate
for (int i = 0; i < allPrayerCards.size(); i++) {
allPrayerCards.get(i).setListOrder(i);
}

asyncSave();
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.williamsonministry.prayercards;

import android.app.IntentService;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.util.Log;
Expand Down Expand Up @@ -31,6 +32,13 @@ protected void onHandleIntent(@Nullable Intent intent) {
ArrayList<PrayerCard> allCards = intent.getParcelableArrayListExtra(ALL_PRAYERCARDS_ARRAYLIST_KEY);
DataBaseHelper dataBaseHelper = new DataBaseHelper(this);
dataBaseHelper.saveAllCards(allCards);

// try {
// Thread.sleep(5000);
// } catch (InterruptedException e) {
// e.printStackTrace();
// }

editor4.putBoolean("SAVE_FINISH", true);
editor4.apply();
Log.d(TAG, "onHandleIntent: Save Ended");
Expand Down
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 {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.0'
classpath 'com.android.tools.build:gradle:7.1.3'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down

0 comments on commit 0598ba0

Please sign in to comment.