[android] remove unused imports and reformat code

This commit is contained in:
Alexey Osminin 2020-12-07 14:30:44 +03:00 committed by Aleksandr Zatsepin
parent 6595345924
commit 5f969d130b
2 changed files with 8 additions and 8 deletions

View file

@ -71,11 +71,13 @@ std::string Platform::GetMemoryInfo() const
ASSERT(classMemLogging, ());
jobject context = android::Platform::Instance().GetContext();
static jmethodID const getMemoryInfoId = jni::GetStaticMethodID(env,
static_cast<jclass>(*classMemLogging), "getMemoryInfo",
"(Landroid/content/Context;)Ljava/lang/String;");
jstring const memInfoString = (jstring)env->CallStaticObjectMethod(
static_cast<jclass>(*classMemLogging), getMemoryInfoId, context);
static jmethodID const getMemoryInfoId
= jni::GetStaticMethodID(env,
static_cast<jclass>(*classMemLogging),
"getMemoryInfo",
"(Landroid/content/Context;)Ljava/lang/String;");
jstring const memInfoString = static_cast<jstring>(env->CallStaticObjectMethod(
static_cast<jclass>(*classMemLogging), getMemoryInfoId, context));
ASSERT(memInfoString, ());
return jni::ToNativeString(env, memInfoString);

View file

@ -1,13 +1,11 @@
package com.mapswithme.util;
import android.content.Context;
import androidx.annotation.NonNull;
import android.text.TextUtils;
import android.view.inputmethod.InputMethodManager;
import android.view.inputmethod.InputMethodSubtype;
import androidx.annotation.Nullable;
import com.mapswithme.maps.MwmApplication;
import androidx.annotation.NonNull;
import java.util.Locale;