forked from organicmaps/organicmaps
[android] Fix "Help" menu in settings
Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
This commit is contained in:
parent
b58d65c9fc
commit
d3ed3d73f0
2 changed files with 5 additions and 1 deletions
|
@ -166,7 +166,6 @@
|
|||
android:key="@string/pref_help"
|
||||
android:title="@string/help"
|
||||
android:order="1">
|
||||
<intent android:action="com.mapswithme.maps.help.HelpActivity"/>
|
||||
</Preference>
|
||||
</androidx.preference.PreferenceCategory>
|
||||
</androidx.preference.PreferenceScreen>
|
||||
|
|
|
@ -28,6 +28,7 @@ import com.mapswithme.maps.R;
|
|||
import com.mapswithme.maps.downloader.MapManager;
|
||||
import com.mapswithme.maps.downloader.OnmapDownloader;
|
||||
import com.mapswithme.maps.editor.ProfileActivity;
|
||||
import com.mapswithme.maps.help.HelpActivity;
|
||||
import com.mapswithme.maps.location.LocationHelper;
|
||||
import com.mapswithme.maps.location.LocationProviderFactory;
|
||||
import com.mapswithme.maps.sound.LanguageData;
|
||||
|
@ -376,6 +377,10 @@ public class SettingsPrefsFragment extends BaseXmlSettingsFragment
|
|||
{
|
||||
startActivity(new Intent(getActivity(), ProfileActivity.class));
|
||||
}
|
||||
else if (preference.getKey() != null && preference.getKey().equals(getString(R.string.pref_help)))
|
||||
{
|
||||
startActivity(new Intent(getActivity(), HelpActivity.class));
|
||||
}
|
||||
return super.onPreferenceTreeClick(preference);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue