2023-07-19 23:28:33 +02:00
|
|
|
package juloo.keyboard2;
|
|
|
|
|
|
|
|
import android.util.Log;
|
|
|
|
import android.util.LogPrinter;
|
|
|
|
import android.view.inputmethod.EditorInfo;
|
|
|
|
import org.json.JSONException;
|
|
|
|
|
|
|
|
public final class Logs
|
|
|
|
{
|
|
|
|
static final String TAG = "juloo.keyboard2";
|
|
|
|
|
|
|
|
static LogPrinter _debug_logs = null;
|
|
|
|
|
|
|
|
public static void set_debug_logs(boolean d)
|
|
|
|
{
|
|
|
|
_debug_logs = d ? new LogPrinter(Log.DEBUG, TAG) : null;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void debug_startup_input_view(EditorInfo info, Config conf)
|
|
|
|
{
|
|
|
|
if (_debug_logs == null)
|
|
|
|
return;
|
|
|
|
info.dump(_debug_logs, "");
|
|
|
|
if (info.extras != null)
|
|
|
|
_debug_logs.println("extras: "+info.extras.toString());
|
|
|
|
_debug_logs.println("swapEnterActionKey: "+conf.swapEnterActionKey);
|
|
|
|
_debug_logs.println("actionLabel: "+conf.actionLabel);
|
|
|
|
}
|
2023-08-10 19:10:32 +02:00
|
|
|
|
|
|
|
public static void debug(String s)
|
|
|
|
{
|
|
|
|
if (_debug_logs != null)
|
|
|
|
_debug_logs.println(s);
|
|
|
|
}
|
2023-07-19 23:28:33 +02:00
|
|
|
}
|