change button text and clean imports

This commit is contained in:
Chumva 2018-04-17 13:13:01 +03:00
parent 5e33b73209
commit 055c3b1119
3 changed files with 3 additions and 11 deletions

View file

@ -112,9 +112,9 @@ public class SelectWptCategoriesBottomSheetDialogFragment extends MenuBottomShee
@Override
protected int getRightBottomButtonTextId() {
if (isUpdateMode) {
return -1;
} else {
return super.getRightBottomButtonTextId();
} else {
return R.string.shared_string_add;
}
}

View file

@ -20,5 +20,4 @@ public class MapMarkerCategoriesViewHolder extends RecyclerView.ViewHolder {
icon = (ImageView) itemView.findViewById(R.id.icon_right);
title = (TextView) itemView.findViewById(R.id.title);
}
}
}

View file

@ -1,24 +1,19 @@
package net.osmand.plus.mapmarkers.adapters;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.Snackbar;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CompoundButton;
import android.widget.ImageView;
import android.widget.Toast;
import net.osmand.AndroidUtils;
import net.osmand.IndexConstants;
import net.osmand.OsmAndCollator;
import net.osmand.data.LatLon;
import net.osmand.plus.GPXDatabase;
import net.osmand.plus.GPXUtilities.GPXFile;
import net.osmand.plus.GpxSelectionHelper;
import net.osmand.plus.GpxSelectionHelper.SelectedGpxFile;
@ -33,12 +28,10 @@ import net.osmand.plus.OsmandApplication;
import net.osmand.plus.R;
import net.osmand.plus.activities.MapActivity;
import net.osmand.plus.dashboard.DashLocationFragment;
import net.osmand.plus.mapmarkers.AddTracksGroupBottomSheetDialogFragment;
import net.osmand.plus.mapmarkers.SelectWptCategoriesBottomSheetDialogFragment;
import net.osmand.plus.wikivoyage.article.WikivoyageArticleDialogFragment;
import net.osmand.plus.wikivoyage.data.TravelArticle;
import net.osmand.plus.wikivoyage.data.TravelDbHelper;
import net.osmand.plus.wikivoyage.data.TravelLocalDataHelper;
import java.io.File;
import java.text.SimpleDateFormat;