I suppose your isNull() always returns false, because :
PreferenceManager.getDefaultSharedPreferences(mContext)
will not return null
, at least I never seen such case. This way you never initialize your MAX and PROGRESS values, and in the end you read defaults.
You can use SharedPreferences.contains method to check if MAX exists, and if not then initialize it.