blob: 6fffcb6ea6398856800a4fafcb61aad9e255b641 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
package com.mapswithme.maps.editor;
import android.content.Intent;
import androidx.fragment.app.Fragment;
import com.mapswithme.maps.base.BaseMwmFragmentActivity;
import com.mapswithme.maps.editor.data.FeatureCategory;
public class FeatureCategoryActivity extends BaseMwmFragmentActivity implements FeatureCategoryFragment.FeatureCategoryListener
{
public static final String EXTRA_FEATURE_CATEGORY = "FeatureCategory";
@Override
protected Class<? extends Fragment> getFragmentClass()
{
return FeatureCategoryFragment.class;
}
@Override
public void onFeatureCategorySelected(FeatureCategory category)
{
Editor.createMapObject(category);
final Intent intent = new Intent(this, EditorActivity.class);
intent.putExtra(EXTRA_FEATURE_CATEGORY, category);
intent.putExtra(EditorActivity.EXTRA_NEW_OBJECT, true);
startActivity(intent);
}
}
|