am 4bde90bf: Merge "Update setup wizard video and image of AOSP"
* commit '4bde90bf77a52dca1f99eebd3cfb890d741ccd83': Update setup wizard video and image of AOSPmain
commit
fd57599156
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;
|
package com.android.inputmethod.latin.setup;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.content.Context;
|
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.provider.Settings;
|
|
||||||
import android.view.inputmethod.InputMethodInfo;
|
|
||||||
import android.view.inputmethod.InputMethodManager;
|
|
||||||
|
|
||||||
public final class SetupActivity extends Activity {
|
public final class SetupActivity extends Activity {
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -46,6 +46,8 @@ import java.util.ArrayList;
|
||||||
public final class SetupWizardActivity extends Activity implements View.OnClickListener {
|
public final class SetupWizardActivity extends Activity implements View.OnClickListener {
|
||||||
static final String TAG = SetupWizardActivity.class.getSimpleName();
|
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 static final boolean ENABLE_WELCOME_VIDEO = true;
|
||||||
|
|
||||||
private InputMethodManager mImm;
|
private InputMethodManager mImm;
|
||||||
|
@ -304,6 +306,9 @@ public final class SetupWizardActivity extends Activity implements View.OnClickL
|
||||||
|
|
||||||
private int determineSetupStepNumber() {
|
private int determineSetupStepNumber() {
|
||||||
mHandler.cancelPollingImeSettings();
|
mHandler.cancelPollingImeSettings();
|
||||||
|
if (FORCE_TO_SHOW_WELCOME_SCREEN) {
|
||||||
|
return STEP_1;
|
||||||
|
}
|
||||||
if (!UncachedInputMethodManagerUtils.isThisImeEnabled(this, mImm)) {
|
if (!UncachedInputMethodManagerUtils.isThisImeEnabled(this, mImm)) {
|
||||||
return STEP_1;
|
return STEP_1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue