diff options
author | cretin45 <cretin45@gmail.com> | 2015-02-13 10:21:37 -0800 |
---|---|---|
committer | cretin45 <cretin45@gmail.com> | 2015-02-13 10:21:37 -0800 |
commit | 97fdf91ee844142ba6983d8b0deeb5f552dc5f58 (patch) | |
tree | 4ce846d1d3086571f56ccc315a69b9e8d524a805 /src/com/cyanogenmod/setupwizard/setup | |
parent | c4b0b1c3073f90f5e472e4cba9392828eab647c4 (diff) | |
download | packages_apps_SetupWizard-97fdf91ee844142ba6983d8b0deeb5f552dc5f58.zip packages_apps_SetupWizard-97fdf91ee844142ba6983d8b0deeb5f552dc5f58.tar.gz packages_apps_SetupWizard-97fdf91ee844142ba6983d8b0deeb5f552dc5f58.tar.bz2 |
SetupWizard: Only show backup if a gms account was added
Change-Id: I6cadf141c330d072f8cfc51769e4f41b74ebf880
Diffstat (limited to 'src/com/cyanogenmod/setupwizard/setup')
-rw-r--r-- | src/com/cyanogenmod/setupwizard/setup/OtherSettingsPage.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/cyanogenmod/setupwizard/setup/OtherSettingsPage.java b/src/com/cyanogenmod/setupwizard/setup/OtherSettingsPage.java index 9f85aea..ab5bce8 100644 --- a/src/com/cyanogenmod/setupwizard/setup/OtherSettingsPage.java +++ b/src/com/cyanogenmod/setupwizard/setup/OtherSettingsPage.java @@ -37,6 +37,7 @@ import android.widget.CheckBox; import android.widget.TextView; import com.cyanogenmod.setupwizard.R; +import com.cyanogenmod.setupwizard.SetupWizardApp; import com.cyanogenmod.setupwizard.ui.SetupPageFragment; import com.cyanogenmod.setupwizard.ui.WebViewDialogFragment; import com.cyanogenmod.setupwizard.util.SetupWizardUtils; @@ -169,7 +170,9 @@ public class OtherSettingsPage extends SetupPage { } mBackupRow = mRootView.findViewById(R.id.backup); mBackupRow.setOnClickListener(mBackupClickListener); - mBackupRow.setVisibility(hasGms ? View.VISIBLE : View.GONE); + boolean backupVisible = hasGms && + SetupWizardUtils.accountExists(getActivity(), SetupWizardApp.ACCOUNT_TYPE_GMS); + mBackupRow.setVisibility(backupVisible ? View.VISIBLE : View.GONE); mBackup = (CheckBox) mRootView.findViewById(R.id.backup_checkbox); mLocationRow = mRootView.findViewById(R.id.location); mLocationRow.setOnClickListener(mLocationClickListener); |