Fix possible crash and migrate file provider name in manifests
This commit is contained in:
parent
7a183fa539
commit
febe5e3361
6 changed files with 11 additions and 7 deletions
|
@ -20,7 +20,7 @@
|
|||
android:process="net.osmand"/>
|
||||
|
||||
<provider
|
||||
android:name="android.support.v4.content.FileProvider"
|
||||
android:name="androidx.core.content.FileProvider"
|
||||
tools:replace="android:authorities"
|
||||
android:authorities="net.osmand.fileprovider"/>
|
||||
</application>
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
android:process="net.osmand.freecustom"
|
||||
tools:replace="android:process"/>
|
||||
<provider
|
||||
android:name="android.support.v4.content.FileProvider"
|
||||
android:name="androidx.core.content.FileProvider"
|
||||
android:authorities="net.osmand.freecustom.fileprovider"
|
||||
tools:replace="android:authorities"/>
|
||||
</application>
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
android:process="net.osmand.dev"
|
||||
tools:replace="android:process"/>
|
||||
<provider
|
||||
android:name="android.support.v4.content.FileProvider"
|
||||
android:name="androidx.core.content.FileProvider"
|
||||
android:authorities="net.osmand.dev.fileprovider"
|
||||
tools:replace="android:authorities"/>
|
||||
</application>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</activity>
|
||||
|
||||
<provider
|
||||
android:name="android.support.v4.content.FileProvider"
|
||||
android:name="androidx.core.content.FileProvider"
|
||||
android:authorities="net.osmand.huawei.fileprovider"
|
||||
tools:replace="android:authorities" />
|
||||
<service
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</activity>
|
||||
|
||||
<provider
|
||||
android:name="android.support.v4.content.FileProvider"
|
||||
android:name="androidx.core.content.FileProvider"
|
||||
android:authorities="net.osmand.plus.huawei.fileprovider"
|
||||
tools:replace="android:authorities" />
|
||||
<service
|
||||
|
|
|
@ -12,6 +12,7 @@ import androidx.annotation.NonNull;
|
|||
import androidx.annotation.Nullable;
|
||||
import androidx.appcompat.view.ContextThemeWrapper;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.fragment.app.FragmentManager;
|
||||
|
||||
import net.osmand.AndroidUtils;
|
||||
import net.osmand.data.LatLon;
|
||||
|
@ -204,8 +205,11 @@ public class DestinationReachedMenuFragment extends Fragment {
|
|||
|
||||
public void dismissMenu() {
|
||||
MapActivity mapActivity = getMapActivity();
|
||||
if (mapActivity != null && !mapActivity.isActivityDestroyed()) {
|
||||
mapActivity.getSupportFragmentManager().popBackStack();
|
||||
if (mapActivity != null) {
|
||||
FragmentManager fragmentManager = mapActivity.getSupportFragmentManager();
|
||||
if (!fragmentManager.isStateSaved()) {
|
||||
fragmentManager.popBackStack();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue