package com.mapswithme.maps.ugc.routes;

import android.content.Intent;
import android.support.annotation.NonNull;

import com.mapswithme.maps.R;
import com.mapswithme.maps.bookmarks.data.BookmarkManager;

public class EditCategoryNameFragment extends BaseEditUserBookmarkCategoryFragment
{
  public static final int REQ_CODE_EDIT_DESCRIPTION = 75;

  @Override
  protected int getTitleText()
  {
    return R.string.name_title;
  }

  @Override
  @NonNull
  protected CharSequence getTopSummaryText()
  {
    return getString(R.string.name_comment2);
  }

  @NonNull
  @Override
  protected CharSequence getBottomSummaryText()
  {
    return getString(R.string.name_comment2);
  }

  @Override
  protected void onDoneOptionItemClicked()
  {
    BookmarkManager.INSTANCE.setCategoryName(getCategory().getId(),
                                             getEditText().getText().toString().trim());
    openNextScreen();
  }

  private void openNextScreen()
  {
    Intent intent = new Intent(getContext(), EditCategoryDescriptionActivity.class);
    intent.putExtra(BaseEditUserBookmarkCategoryFragment.BUNDLE_BOOKMARK_CATEGORY, getCategory());
    startActivityForResult(intent, REQ_CODE_EDIT_DESCRIPTION);
  }

  @NonNull
  @Override
  protected CharSequence getEditableText()
  {
    return getCategory().getName();
  }
}

@@ -533,33 +533,33 @@
 ing.name_comment
-2
+1
 );%0A  %7D%0A%0A  @NonNu

Change res ids