Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

[edited] @Extra fields should be updated when setIntent() is called #166

Copy link
Copy link
@Brimstedt

Description

@Brimstedt
Issue body actions

Hello

Im using notifications to launch an activity and in this activity I have used the @extra annotation to inject my extras.

Example:

@ViewById(R.id.server)
TextView serverView;

@Extra(SERVER)
String server;

@AfterViews
protected void afterViews()
{
    serverView.setText(server);
}

@Override
protected void onPostResume()
{
    super.onPostResume();
    serverView.setText(server);
}

However, my serverView is never updated with new text during the PostResume, unless I also add:

@Override
protected void onNewIntent(Intent intent)
{
    super.onNewIntent(intent);
    server = intent.getStringExtra(TITLE);
}

Shouldnt this updating be done automatically be androidannotation?

br

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.