[Libreoffice-commits] core.git: android/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Aug 7 12:27:11 UTC 2018
android/source/src/java/org/libreoffice/ColorPaletteAdapter.java | 1 +
android/source/src/java/org/libreoffice/ColorPickerAdapter.java | 1 +
2 files changed, 2 insertions(+)
New commits:
commit e4ed3d74084cb9acd8c5bb2d30cdc35d92def0f4
Author: Mert Tumer <merttumer at outlook.com>
AuthorDate: Tue Jul 31 10:46:56 2018 -0700
Commit: Tomaž Vajngerl <quikee at gmail.com>
CommitDate: Tue Aug 7 14:26:50 2018 +0200
Show Save document dialog when using colorpicker
on Android Viewer
Signed-off-by: Mert Tumer <merttumer at outlook.com>
Change-Id: I4e46e9a4aeba991e19e85f177a8031bcecf4b9c3
Reviewed-on: https://gerrit.libreoffice.org/58370
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>
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()]);
}
More information about the Libreoffice-commits
mailing list