Skip to content

Commit

Permalink
[Android] Fix deprecation warning for SigninFirstRunFragment.onAttach
Browse files Browse the repository at this point in the history
This CL modifies SigninFirstRunFragment to use onAttach(Context) instead
of onAttach(Activity) that has been deprecated.

Bug: 537049
Change-Id: If6615a4eb2efa9908f7b9f21e9aa1039457a43a2
Reviewed-on: https://chromium-review.googlesource.com/1113927
Reviewed-by: Theresa <twellington@chromium.org>
Commit-Queue: Boris Sazonov <bsazonov@chromium.org>
Cr-Commit-Position: refs/heads/master@{#570185}
  • Loading branch information
Boris Sazonov authored and Commit Bot committed Jun 25, 2018
1 parent 92acaa6 commit 708568c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

package org.chromium.chrome.browser.firstrun;

import android.app.Activity;
import android.app.Fragment;
import android.content.Context;
import android.os.Bundle;

import org.chromium.base.metrics.RecordUserAction;
Expand All @@ -23,8 +23,8 @@ public class SigninFirstRunFragment extends SigninFragmentBase implements FirstR
public SigninFirstRunFragment() {}

@Override
public void onAttach(Activity activity) {
super.onAttach(activity);
public void onAttach(Context context) {
super.onAttach(context);

Bundle freProperties = getPageDelegate().getProperties();
String forceAccountTo =
Expand Down

0 comments on commit 708568c

Please sign in to comment.