Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3264f438 authored by Ray Chen's avatar Ray Chen
Browse files

Fix 5329642 Gallery crashes when viewing Details on certain photos

AddressResolvingListener (mAdapter) is not set until constructor returns, so NPE is thrown
if the resolving happens really fast. This CL uses 'this' instead of mAdapter.

Change-Id: Ifce0ea92a3eb5c794a73cf0e89a236ff3d948c18
parent 7697fb27
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -146,7 +146,7 @@ public class DialogDetailsView implements DetailsViewContainer {
                    case MediaDetails.INDEX_LOCATION: {
                        double[] latlng = (double[]) detail.getValue();
                        mLocationIndex = mItems.size();
                        value = DetailsHelper.resolveAddress(mContext, latlng, mAdapter);
                        value = DetailsHelper.resolveAddress(mContext, latlng, this);
                        break;
                    }
                    case MediaDetails.INDEX_SIZE: {