summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorcretin45 <cretin45@gmail.com>2015-02-04 16:50:37 -0800
committercretin45 <cretin45@gmail.com>2015-02-04 16:50:37 -0800
commit17c2db964e88e12576aaf31a1f07d24a3617dc53 (patch)
treeaedf3efb7b1ee7e9339e27f261c93fdf6cd0aeba /src
parent508cfbb0f348febfea88a994af4dfcb9d84b65d6 (diff)
downloadpackages_apps_SetupWizard-17c2db964e88e12576aaf31a1f07d24a3617dc53.zip
packages_apps_SetupWizard-17c2db964e88e12576aaf31a1f07d24a3617dc53.tar.gz
packages_apps_SetupWizard-17c2db964e88e12576aaf31a1f07d24a3617dc53.tar.bz2
SetupWizard: Don't show wizard for guest account
Change-Id: Ie03e22bcbd035b47b55a9774b9e6fc21d407291b
Diffstat (limited to 'src')
-rw-r--r--src/com/cyanogenmod/setupwizard/ui/SetupWizardActivity.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/cyanogenmod/setupwizard/ui/SetupWizardActivity.java b/src/com/cyanogenmod/setupwizard/ui/SetupWizardActivity.java
index 76c69a3..7c2bc3c 100644
--- a/src/com/cyanogenmod/setupwizard/ui/SetupWizardActivity.java
+++ b/src/com/cyanogenmod/setupwizard/ui/SetupWizardActivity.java
@@ -19,11 +19,13 @@ package com.cyanogenmod.setupwizard.ui;
import android.animation.Animator;
import android.app.Activity;
import android.app.AppGlobals;
+import android.content.Context;
import android.content.Intent;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.os.Bundle;
import android.os.Handler;
+import android.os.UserManager;
import android.provider.Settings;
import android.view.MotionEvent;
import android.view.View;
@@ -107,6 +109,10 @@ public class SetupWizardActivity extends Activity implements SetupDataCallbacks
} catch (Settings.SettingNotFoundException e) {
// Continue with setup
}
+ UserManager userManager = (UserManager) getSystemService(Context.USER_SERVICE);
+ if (userManager.isGuestUser()) {
+ finishSetup();
+ }
registerReceiver(mSetupData, mSetupData.getIntentFilter());
}