Skip to content

Commit

Permalink
Fix for GrxPickImage to work properly in Grouped values Mods.
Browse files Browse the repository at this point in the history
  • Loading branch information
Grouxho committed Aug 3, 2020
1 parent a8942ec commit 85a1b8a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/src/main/java/android/preference/GrxPickImage.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import android.content.res.TypedArray;
import android.net.Uri;
import android.os.AsyncTask;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
Expand Down Expand Up @@ -135,6 +136,10 @@ public void setNewImage(String uristr){
mStringValue=uristr;
saveNewStringValue(mStringValue);
configStringPreference(mStringValue);
if (!TextUtils.isEmpty(myPrefAttrsInfo.getMyGroupedValueKey())) {
GrxPreferenceScreen mGrxPrefScreen = (GrxPreferenceScreen) getOnPreferenceChangeListener();
mGrxPrefScreen.onSharedPreferenceChanged(Common.sp,getKey());
}
}


Expand Down

0 comments on commit 85a1b8a

Please sign in to comment.