import com.android.camera.util.ApiHelper;
import com.android.camera.util.CameraUtil;
import com.android.camera.util.FeedbackHelper;
+import com.android.camera.util.GalleryHelper;
import com.android.camera.util.GcamHelper;
import com.android.camera.util.IntentHelper;
import com.android.camera.util.PhotoSphereHelper.PanoramaViewHelper;
}
try {
UsageStatistics.changeScreen(NavigationChange.Mode.GALLERY, InteractionCause.BUTTON);
- launchActivityByIntent(new Intent(mGalleryIntent));
+ Intent startGalleryIntent = new Intent(mGalleryIntent);
+ int currentDataId = mFilmstripController.getCurrentId();
+ LocalData currentLocalData = mDataAdapter.getLocalData(currentDataId);
+ if (currentLocalData != null) {
+ GalleryHelper.setContentUri(startGalleryIntent, currentLocalData.getContentUri());
+ }
+ launchActivityByIntent(startGalleryIntent);
} catch (ActivityNotFoundException e) {
Log.w(TAG, "Failed to launch gallery activity, closing");
}
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.drawable.Drawable;
+import android.net.Uri;
/**
* A helper class to provide Gallery related info.
}
return null;
}
+
+ public static void setContentUri(Intent intent, Uri uri) {
+ // Do nothing.
+ }
}