From 253fb7f6c3c026f92f0698f59e013e38085f7662 Mon Sep 17 00:00:00 2001 From: Fabrice Di Meglio Date: Thu, 29 Aug 2013 18:05:02 -0700 Subject: [PATCH] Fix bug #10549094 KLP API Review: android.util.LayoutDirection - use constant class instead of an interface - make it final Change-Id: I1bde76eb84cd92427e4e1fc2483cdecec429ae99 --- api/current.txt | 2 +- core/java/android/util/LayoutDirection.java | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/api/current.txt b/api/current.txt index e4d8b766dd3bd..8d71796dc1f6c 100644 --- a/api/current.txt +++ b/api/current.txt @@ -25748,7 +25748,7 @@ package android.util { method public android.util.JsonWriter value(java.lang.Number) throws java.io.IOException; } - public abstract interface LayoutDirection { + public final class LayoutDirection { field public static final int INHERIT = 2; // 0x2 field public static final int LOCALE = 3; // 0x3 field public static final int LTR = 0; // 0x0 diff --git a/core/java/android/util/LayoutDirection.java b/core/java/android/util/LayoutDirection.java index e37d2f22f45ee..20af20b650094 100644 --- a/core/java/android/util/LayoutDirection.java +++ b/core/java/android/util/LayoutDirection.java @@ -17,11 +17,15 @@ package android.util; /** - * An interface for defining layout directions. A layout direction can be left-to-right (LTR) + * A class for defining layout directions. A layout direction can be left-to-right (LTR) * or right-to-left (RTL). It can also be inherited (from a parent) or deduced from the default * language script of a locale. */ -public interface LayoutDirection { +public final class LayoutDirection { + + // No instantiation + private LayoutDirection() {} + /** * Horizontal layout direction is from Left to Right. */