forked from organicmaps/organicmaps
[andorid] Fixed NPE while navigating to parent activity
This commit is contained in:
parent
268bdf3580
commit
14dbf9c84f
1 changed files with 4 additions and 1 deletions
|
@ -224,8 +224,11 @@ public class Utils
|
|||
LoggerFactory.INSTANCE.zipLogs(new OnZipCompletedCallback(activity, subject));
|
||||
}
|
||||
|
||||
public static void navigateToParent(@NonNull Activity activity)
|
||||
public static void navigateToParent(@Nullable Activity activity)
|
||||
{
|
||||
if (activity == null)
|
||||
return;
|
||||
|
||||
if (activity instanceof CustomNavigateUpListener)
|
||||
((CustomNavigateUpListener) activity).customOnNavigateUp();
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue