summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-07-19 07:15:53 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2024-07-19 12:56:54 +0200
commit3ed11168c5a778d0f54de19a341f96f6e55767be (patch)
treebd89ee468a567ac2120fbec4b0d52605288a00f4
parentf70a8cc859b2300c7f450dfd21a689dbcaca3ccf (diff)
android: Make constant final
Addresses this warning/suggestion shown in Android Studio: > Field 'LOGTAG' may be 'final' And: Drop an unused import. Change-Id: I6ce730a80690c2701a91cc7900cc801b370dc605 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170714 Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> Tested-by: Jenkins
-rw-r--r--android/source/src/java/org/libreoffice/SettingsActivity.java1
-rw-r--r--android/source/src/java/org/mozilla/gecko/gfx/BufferedCairoImage.java2
2 files changed, 1 insertions, 2 deletions
diff --git a/android/source/src/java/org/libreoffice/SettingsActivity.java b/android/source/src/java/org/libreoffice/SettingsActivity.java
index 39102aee5a0f..db715cf8b0cc 100644
--- a/android/source/src/java/org/libreoffice/SettingsActivity.java
+++ b/android/source/src/java/org/libreoffice/SettingsActivity.java
@@ -8,7 +8,6 @@
*/
package org.libreoffice;
-import android.content.SharedPreferences;
import android.os.Bundle;
import androidx.fragment.app.FragmentActivity;
import androidx.preference.PreferenceFragmentCompat;
diff --git a/android/source/src/java/org/mozilla/gecko/gfx/BufferedCairoImage.java b/android/source/src/java/org/mozilla/gecko/gfx/BufferedCairoImage.java
index a616fcc4da43..6900532515e0 100644
--- a/android/source/src/java/org/mozilla/gecko/gfx/BufferedCairoImage.java
+++ b/android/source/src/java/org/mozilla/gecko/gfx/BufferedCairoImage.java
@@ -17,7 +17,7 @@ import java.nio.ByteBuffer;
* A Cairo image that simply saves a buffer of pixel data.
*/
public class BufferedCairoImage extends CairoImage {
- private static String LOGTAG = "GeckoBufferedCairoImage";
+ private static final String LOGTAG = "GeckoBufferedCairoImage";
private ByteBuffer mBuffer;
private IntSize mSize;
private int mFormat;