From f44e517e0bb7e934bb1cac61c11e4b7e8ef80bbe Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Thu, 1 Oct 2015 17:16:43 -0700 Subject: Actually launch onboarding flow if needed Launch OnboardingActivity for exported activities (DialtactsActivity, CallDetailsActivity) to ensure that a) We prompt the user to make us the default dialer at least once b) The user has granted us both the Phone and Contacts permissions Bug: 24270592 Change-Id: I232314e42f5331a72c1a84be917d9d74c5813976 --- src/com/android/dialer/DialtactsActivity.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/com/android/dialer/DialtactsActivity.java') diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index 9978bbedc..455b09758 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -80,6 +80,7 @@ import com.android.dialer.list.RegularSearchFragment; import com.android.dialer.list.SearchFragment; import com.android.dialer.list.SmartDialSearchFragment; import com.android.dialer.list.SpeedDialFragment; +import com.android.dialer.onboard.OnboardingActivity; import com.android.dialer.settings.DialerSettingsActivity; import com.android.dialer.util.IntentUtil; import com.android.dialer.util.TelecomUtil; @@ -374,6 +375,11 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O Trace.beginSection(TAG + " onCreate"); super.onCreate(savedInstanceState); + if (OnboardingActivity.shouldStartOnboardingActivity(this)) { + OnboardingActivity.startOnboardingActivity(this); + finish(); + } + mFirstLaunch = true; final Resources resources = getResources(); -- cgit v1.2.3