Remove reference of android.util.Log in Constants class
This is a follow up of Iee01d4d2. Change-Id: I0bcd349d317d9f7d40ef0574e72c640f9f990c5dmain
parent
7947eaf475
commit
cfbfb1c50a
|
@ -16,11 +16,8 @@
|
||||||
|
|
||||||
package com.android.inputmethod.latin;
|
package com.android.inputmethod.latin;
|
||||||
|
|
||||||
import android.util.Log;
|
|
||||||
|
|
||||||
public final class Constants {
|
public final class Constants {
|
||||||
private static final String TAG = Constants.class.getSimpleName();
|
|
||||||
|
|
||||||
public static final class Color {
|
public static final class Color {
|
||||||
/**
|
/**
|
||||||
* The alpha value for fully opaque.
|
* The alpha value for fully opaque.
|
||||||
|
@ -204,7 +201,6 @@ public final class Constants {
|
||||||
case CODE_TAB: return "tab";
|
case CODE_TAB: return "tab";
|
||||||
case CODE_ENTER: return "enter";
|
case CODE_ENTER: return "enter";
|
||||||
default:
|
default:
|
||||||
if (code <= 0) Log.w(TAG, "Unknown non-positive key code=" + code);
|
|
||||||
if (code < CODE_SPACE) return String.format("'\\u%02x'", code);
|
if (code < CODE_SPACE) return String.format("'\\u%02x'", code);
|
||||||
if (code < 0x100) return String.format("'%c'", code);
|
if (code < 0x100) return String.format("'%c'", code);
|
||||||
return String.format("'\\u%04x'", code);
|
return String.format("'\\u%04x'", code);
|
||||||
|
|
Loading…
Reference in New Issue