Lint issues
This commit is contained in:
parent
6cd6bdda7c
commit
879bf0a072
7
app/lint.xml
Normal file
7
app/lint.xml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<lint>
|
||||||
|
<issue id="InvalidPackage">
|
||||||
|
<!-- we don't use javax.xml.stream -->
|
||||||
|
<ignore path="*/simple-xml-2.6.1.jar" />
|
||||||
|
</issue>
|
||||||
|
</lint>
|
@ -25,7 +25,7 @@
|
|||||||
android:icon="@drawable/ic_launcher"
|
android:icon="@drawable/ic_launcher"
|
||||||
android:label="@string/cpp_app_name"
|
android:label="@string/cpp_app_name"
|
||||||
android:theme="@style/Cpp.Theme.Material"
|
android:theme="@style/Cpp.Theme.Material"
|
||||||
tools:ignore="UnusedAttribute">
|
tools:ignore="GoogleAppIndexingWarning,UnusedAttribute">
|
||||||
|
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="com.google.android.gms.version"
|
android:name="com.google.android.gms.version"
|
||||||
@ -212,6 +212,7 @@
|
|||||||
|
|
||||||
<!-- Google Analytics -->
|
<!-- Google Analytics -->
|
||||||
<receiver
|
<receiver
|
||||||
|
tools:ignore="ExportedReceiver"
|
||||||
android:name="com.google.android.gms.analytics.CampaignTrackingReceiver"
|
android:name="com.google.android.gms.analytics.CampaignTrackingReceiver"
|
||||||
android:enabled="true">
|
android:enabled="true">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
@ -220,6 +221,7 @@
|
|||||||
</receiver>
|
</receiver>
|
||||||
<service android:name="com.google.android.gms.analytics.CampaignTrackingService" />
|
<service android:name="com.google.android.gms.analytics.CampaignTrackingService" />
|
||||||
<receiver
|
<receiver
|
||||||
|
tools:ignore="ExportedReceiver"
|
||||||
android:name="com.google.android.gms.analytics.AnalyticsReceiver"
|
android:name="com.google.android.gms.analytics.AnalyticsReceiver"
|
||||||
android:enabled="true">
|
android:enabled="true">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package com.viewpagerindicator;
|
package com.viewpagerindicator;
|
||||||
|
|
||||||
|
import android.annotation.SuppressLint;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.res.Resources;
|
import android.content.res.Resources;
|
||||||
import android.content.res.TypedArray;
|
import android.content.res.TypedArray;
|
||||||
@ -278,6 +279,7 @@ public class CirclePageIndicator extends View implements PageIndicator {
|
|||||||
canvas.drawCircle(dX, dY, mRadius, mPaintFill);
|
canvas.drawCircle(dX, dY, mRadius, mPaintFill);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressLint("ClickableViewAccessibility")
|
||||||
public boolean onTouchEvent(MotionEvent ev) {
|
public boolean onTouchEvent(MotionEvent ev) {
|
||||||
if (super.onTouchEvent(ev)) {
|
if (super.onTouchEvent(ev)) {
|
||||||
return true;
|
return true;
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
package org.solovyev.android.calculator.floating;
|
package org.solovyev.android.calculator.floating;
|
||||||
|
|
||||||
|
import android.annotation.SuppressLint;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
import android.content.res.Resources;
|
import android.content.res.Resources;
|
||||||
@ -80,6 +81,7 @@ public class FloatingCalculatorView {
|
|||||||
dd.getMetrics(dm);
|
dd.getMetrics(dm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressLint("ClickableViewAccessibility")
|
||||||
@Override
|
@Override
|
||||||
public boolean onTouch(View v, MotionEvent event) {
|
public boolean onTouch(View v, MotionEvent event) {
|
||||||
//noinspection deprecation
|
//noinspection deprecation
|
||||||
|
@ -19,16 +19,24 @@ import android.view.inputmethod.EditorInfo;
|
|||||||
import android.view.inputmethod.InputMethodManager;
|
import android.view.inputmethod.InputMethodManager;
|
||||||
import android.widget.EditText;
|
import android.widget.EditText;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
import butterknife.Bind;
|
|
||||||
import butterknife.ButterKnife;
|
import org.solovyev.android.calculator.App;
|
||||||
import org.solovyev.android.calculator.*;
|
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.Check;
|
||||||
import org.solovyev.android.plotter.Plot;
|
import org.solovyev.android.plotter.Plot;
|
||||||
import org.solovyev.android.plotter.Plotter;
|
import org.solovyev.android.plotter.Plotter;
|
||||||
|
|
||||||
|
import java.util.Locale;
|
||||||
|
|
||||||
import javax.annotation.Nonnull;
|
import javax.annotation.Nonnull;
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
|
|
||||||
|
import butterknife.Bind;
|
||||||
|
import butterknife.ButterKnife;
|
||||||
|
|
||||||
public class PlotDimensionsFragment extends BaseDialogFragment
|
public class PlotDimensionsFragment extends BaseDialogFragment
|
||||||
implements TextView.OnEditorActionListener {
|
implements TextView.OnEditorActionListener {
|
||||||
private static final String ARG_BOUNDS = "arg-bounds";
|
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) {
|
private void setDimension(@NonNull EditText view, float value) {
|
||||||
view.setOnEditorActionListener(this);
|
view.setOnEditorActionListener(this);
|
||||||
view.setText(String.format("%.2f", value));
|
view.setText(String.format(Locale.getDefault(), "%.2f", value));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void tryClose() {
|
private void tryClose() {
|
||||||
|
Loading…
Reference in New Issue
Block a user