forked from organicmaps/organicmaps
[android] Fixed crash in osm login from dialog.
This commit is contained in:
parent
56fd4c7be3
commit
4b1489c4de
3 changed files with 24 additions and 1 deletions
android
|
@ -271,6 +271,15 @@
|
|||
android:value="com.mapswithme.maps.MwmActivity"/>
|
||||
</activity>
|
||||
|
||||
<activity
|
||||
android:name="com.mapswithme.maps.editor.OsmAuthActivity"
|
||||
android:parentActivityName="com.mapswithme.maps.MwmActivity">
|
||||
<!-- The meta-data element is needed for versions lower than 4.1 -->
|
||||
<meta-data
|
||||
android:name="android.support.PARENT_ACTIVITY"
|
||||
android:value="com.mapswithme.maps.MwmActivity"/>
|
||||
</activity>
|
||||
|
||||
<!-- facebook -->
|
||||
<activity
|
||||
android:name="com.facebook.FacebookActivity"
|
||||
|
|
|
@ -78,7 +78,7 @@ public class AuthDialogFragment extends BaseMwmDialogFragment implements View.On
|
|||
|
||||
protected void loginOsm()
|
||||
{
|
||||
getMwmActivity().replaceFragment(OsmAuthFragment.class, null, null);
|
||||
startActivity(new Intent(getActivity(), OsmAuthActivity.class));
|
||||
dismiss();
|
||||
}
|
||||
|
||||
|
|
14
android/src/com/mapswithme/maps/editor/OsmAuthActivity.java
Normal file
14
android/src/com/mapswithme/maps/editor/OsmAuthActivity.java
Normal file
|
@ -0,0 +1,14 @@
|
|||
package com.mapswithme.maps.editor;
|
||||
|
||||
import android.support.v4.app.Fragment;
|
||||
|
||||
import com.mapswithme.maps.base.BaseMwmFragmentActivity;
|
||||
|
||||
public class OsmAuthActivity extends BaseMwmFragmentActivity
|
||||
{
|
||||
@Override
|
||||
protected Class<? extends Fragment> getFragmentClass()
|
||||
{
|
||||
return OsmAuthFragment.class;
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue