~anjan/lift

88d695f05dc0891941c7db0886709e5cdbd5653a — Anjandev Momi 4 years ago 09c69e1
531: reload sharedpref with each excer incase change
1 files changed, 1 insertions(+), 1 deletions(-)

M app/src/main/java/ca/momi/lift/Routine531BBB.java
M app/src/main/java/ca/momi/lift/Routine531BBB.java => app/src/main/java/ca/momi/lift/Routine531BBB.java +1 -1
@@ 104,7 104,6 @@ public class Routine531BBB {


    static public List<NextExcersize> nextRoutineWeights (Context context){
        SharedPreferences sharedPref = context.getSharedPreferences(PREFERENCE_FILE_KEY, Context.MODE_PRIVATE);

        AssignedExcers assExcer = new AssignedExcers();



@@ 141,6 140,7 @@ public class Routine531BBB {
                    curExcersize = curExcersize.substring(0, curExcersize.lastIndexOf(AssignedExcers.SUPPLEMENT));
                }

                SharedPreferences sharedPref = context.getSharedPreferences(PREFERENCE_FILE_KEY, Context.MODE_PRIVATE);
                double excerWeight = Double.valueOf(sharedPref.getString(curExcersize + "1RM", "0"));

                String lastDay = sharedPref.getString("Last Day Saved", "null");