Lint issues

This commit is contained in:
serso
2016-05-18 11:11:24 +02:00
parent 6cd6bdda7c
commit 879bf0a072
5 changed files with 29 additions and 8 deletions

View File

@@ -22,6 +22,7 @@
package org.solovyev.android.calculator.floating;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.res.Resources;
@@ -80,6 +81,7 @@ public class FloatingCalculatorView {
dd.getMetrics(dm);
}
@SuppressLint("ClickableViewAccessibility")
@Override
public boolean onTouch(View v, MotionEvent event) {
//noinspection deprecation

View File

@@ -19,16 +19,24 @@ import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;
import android.widget.TextView;
import butterknife.Bind;
import butterknife.ButterKnife;
import org.solovyev.android.calculator.*;
import org.solovyev.android.calculator.App;
import org.solovyev.android.calculator.AppComponent;
import org.solovyev.android.calculator.BaseDialogFragment;
import org.solovyev.android.calculator.BaseFragment;
import org.solovyev.android.calculator.R;
import org.solovyev.android.plotter.Check;
import org.solovyev.android.plotter.Plot;
import org.solovyev.android.plotter.Plotter;
import java.util.Locale;
import javax.annotation.Nonnull;
import javax.inject.Inject;
import butterknife.Bind;
import butterknife.ButterKnife;
public class PlotDimensionsFragment extends BaseDialogFragment
implements TextView.OnEditorActionListener {
private static final String ARG_BOUNDS = "arg-bounds";
@@ -184,7 +192,7 @@ public class PlotDimensionsFragment extends BaseDialogFragment
private void setDimension(@NonNull EditText view, float value) {
view.setOnEditorActionListener(this);
view.setText(String.format("%.2f", value));
view.setText(String.format(Locale.getDefault(), "%.2f", value));
}
private void tryClose() {