forked from organicmaps/organicmaps
Merge pull request #2872 from yunikkk/kmz-attachment-fix
[android] Fixed missing attachment.
This commit is contained in:
commit
79dc7aa4ff
2 changed files with 6 additions and 4 deletions
|
@ -89,7 +89,7 @@ public class BookmarkCategoriesAdapter extends BaseBookmarkCategoryAdapter<Bookm
|
|||
@Override
|
||||
public void onClick(View v)
|
||||
{
|
||||
BookmarkManager.INSTANCE.toggleCategoryVisibility(position);
|
||||
BookmarkManager.INSTANCE.toggleCategoryVisibility(holder.getAdapterPosition());
|
||||
holder.setVisibilityState(set.isVisible());
|
||||
}
|
||||
});
|
||||
|
|
|
@ -215,12 +215,14 @@ public final class SharingHelper
|
|||
|
||||
public static void shareBookmarksCategory(Activity context, int id)
|
||||
{
|
||||
String name = BookmarkManager.INSTANCE.nativeSaveToKmzFile(id, MwmApplication.get().getTempPath());
|
||||
String path = MwmApplication.get().getTempPath();
|
||||
String name = BookmarkManager.INSTANCE.nativeSaveToKmzFile(id, path);
|
||||
if (name == null)
|
||||
return;
|
||||
|
||||
shareOutside(new LocalFileShareable(context, name + ".kmz", "application/vnd.google-earth.kmz")
|
||||
.setText(R.string.share_bookmarks_email_body)
|
||||
shareOutside(new LocalFileShareable(context, path + name + ".kmz", "application/vnd.google-earth.kmz")
|
||||
// TODO fix translation for some languages, that doesn't contain holder for filename
|
||||
.setText(context.getString(R.string.share_bookmarks_email_body, name))
|
||||
.setSubject(R.string.share_bookmarks_email_subject));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue