diff options
author | Mert Tumer <merttumer@outlook.com> | 2018-07-31 10:46:56 -0700 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2018-08-07 14:26:50 +0200 |
commit | e4ed3d74084cb9acd8c5bb2d30cdc35d92def0f4 (patch) | |
tree | e13b27cf8ec2fc39dc303f07731bc48295ddfb24 /android/source/src | |
parent | 31e66bd07c1082bb375be8aaf7835f019351d9bb (diff) |
Show Save document dialog when using colorpicker
on Android Viewer
Signed-off-by: Mert Tumer <merttumer@outlook.com>
Change-Id: I4e46e9a4aeba991e19e85f177a8031bcecf4b9c3
Reviewed-on: https://gerrit.libreoffice.org/58370
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'android/source/src')
-rw-r--r-- | android/source/src/java/org/libreoffice/ColorPaletteAdapter.java | 1 | ||||
-rw-r--r-- | android/source/src/java/org/libreoffice/ColorPickerAdapter.java | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/android/source/src/java/org/libreoffice/ColorPaletteAdapter.java b/android/source/src/java/org/libreoffice/ColorPaletteAdapter.java index 7cce2ed7d46a..a6d250f6380d 100644 --- a/android/source/src/java/org/libreoffice/ColorPaletteAdapter.java +++ b/android/source/src/java/org/libreoffice/ColorPaletteAdapter.java @@ -49,6 +49,7 @@ public class ColorPaletteAdapter extends RecyclerView.Adapter<ColorPaletteAdapte holder.colorBox.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { + LibreOfficeMainActivity.setDocumentChanged(true); setPosition(holder.getAdapterPosition()); } }); diff --git a/android/source/src/java/org/libreoffice/ColorPickerAdapter.java b/android/source/src/java/org/libreoffice/ColorPickerAdapter.java index f387e50634a5..092de46caec4 100644 --- a/android/source/src/java/org/libreoffice/ColorPickerAdapter.java +++ b/android/source/src/java/org/libreoffice/ColorPickerAdapter.java @@ -50,6 +50,7 @@ public class ColorPickerAdapter extends RecyclerView.Adapter<ColorPickerAdapter. holder.colorBox.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { + LibreOfficeMainActivity.setDocumentChanged(true); setPosition(holder.getAdapterPosition()); colorPaletteListener.applyColor(colorList[holder.getAdapterPosition()]); } |