예제 #1
0
  private void initGeneralTab() {
    mKeepSignedInCG.setSelectedIndex(0, mSettings.getKeepSignedIn());
    mCacheContactsCG.setSelectedIndex(0, mSettings.getCacheContacts());
    mPreloadContactsCG.setSelectedIndex(0, mSettings.getPreloadContacts());

    setDelWOConfCG(mSettings.getDelWOConf());
    mDWOCConvCI.select(mSettings.getDelWOCConv());
    mDWOCMsgCI.select(mSettings.getDelWOCMsg());
  }
예제 #2
0
  private void createGeneralTab() {
    TabbedForm f = null;
    // #if true
    // # f = (TabbedForm)mView;
    // #endif

    // #style ChoiceGroup
    mKeepSignedInCG = new ChoiceGroup("", ChoiceGroup.MULTIPLE);
    // #style ChoiceItem
    mKeepSignedInCG.append(Locale.get("login.KeepSignedIn"), null);
    f.append(GENERAL_TAB, mKeepSignedInCG);

    // #style ChoiceGroup
    mCacheContactsCG = new ChoiceGroup("", ChoiceGroup.MULTIPLE);
    // #style ChoiceItem
    mCacheContactsCG.append(Locale.get("settings.CacheContacts"), null);
    /* TODO Add this in later
    	f.append(GENERAL_TAB, mCacheContactsCG);
    */

    // ========== Preload Contacts

    // #style ChoiceGroup
    mPreloadContactsCG = new ChoiceGroup("", ChoiceGroup.MULTIPLE);
    // #style ChoiceItem
    mPreloadContactsCG.append(Locale.get("settings.PreloadContacts"), null);
    f.append(GENERAL_TAB, mPreloadContactsCG);

    // ========== Delete w/o confirmation

    boolean delWOC = mSettings.getDelWOConf();
    // #style ChoiceGroupOffset
    mDelWOConfCG = new ChoiceGroup("", ChoiceGroup.MULTIPLE);
    // #style ChoiceItem
    mDelWOConfCG.append(Locale.get("settings.DelWOConf"), null);
    mDelWOConfCG.setSelectedIndex(0, delWOC);
    f.append(GENERAL_TAB, mDelWOConfCG);

    // #style ChoiceGroupIndented
    mDelWOConfSubCG = new ChoiceGroup("", ChoiceGroup.MULTIPLE);
    // #style ChoiceItem
    mDWOCConvCI = new ChoiceItem(Locale.get("settings.Conversations"), null, Choice.MULTIPLE);
    // #style ChoiceItem
    mDWOCMsgCI = new ChoiceItem(Locale.get("settings.Messages"), null, Choice.MULTIPLE);
    f.append(GENERAL_TAB, mDelWOConfSubCG);

    // TODO remove when Polish fixes bug that causes layout/highlighting weirdness if the below is
    // removed
    // #style Spacer
    StringItem s = new StringItem(null, "");
    f.append(GENERAL_TAB, s);
  }