Merge "Update setup wizard video and image of AOSP"
commit
4bde90bf77
Binary file not shown.
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 148 KiB |
Binary file not shown.
|
@ -17,12 +17,8 @@
|
|||
package com.android.inputmethod.latin.setup;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.provider.Settings;
|
||||
import android.view.inputmethod.InputMethodInfo;
|
||||
import android.view.inputmethod.InputMethodManager;
|
||||
|
||||
public final class SetupActivity extends Activity {
|
||||
@Override
|
||||
|
|
|
@ -46,6 +46,8 @@ import java.util.ArrayList;
|
|||
public final class SetupWizardActivity extends Activity implements View.OnClickListener {
|
||||
static final String TAG = SetupWizardActivity.class.getSimpleName();
|
||||
|
||||
// For debugging purpose.
|
||||
private static final boolean FORCE_TO_SHOW_WELCOME_SCREEN = false;
|
||||
private static final boolean ENABLE_WELCOME_VIDEO = true;
|
||||
|
||||
private InputMethodManager mImm;
|
||||
|
@ -304,6 +306,9 @@ public final class SetupWizardActivity extends Activity implements View.OnClickL
|
|||
|
||||
private int determineSetupStepNumber() {
|
||||
mHandler.cancelPollingImeSettings();
|
||||
if (FORCE_TO_SHOW_WELCOME_SCREEN) {
|
||||
return STEP_1;
|
||||
}
|
||||
if (!UncachedInputMethodManagerUtils.isThisImeEnabled(this, mImm)) {
|
||||
return STEP_1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue