Skip to content
This repository was archived by the owner on May 15, 2024. It is now read-only.
This repository was archived by the owner on May 15, 2024. It is now read-only.

No Exception on Android if Activity is null (due to init not being set) #309

@jamesmontemagno

Description

@jamesmontemagno

Original Issue: https://github.com/MicrosoftDocs/xamarin-docs/issues/421

Description

If we try to use an API where the Activity (not context) is required then we get no notification or error that it was null and we should set the Init and track it correctly.

Steps to Reproduce

  1. Install without adding Android Init
  2. Call Screenlock functionality
  3. Nothing happens

Expected Behavior

Exception should occure

Actual Behavior

Nothing happens

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-to-implementFeature approved, specs written, and ready to implement.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions