コード例 #1
0
  private void loadSettings() {
    try {
      appSettings = this.moduleManager.loadAndGetSettings(appSession.getAppPublicKey());
    } catch (Exception e) {
      appSettings = null;
    }

    if (appSettings == null) {
      appSettings = new CryptoCustomerCommunitySettings();
      appSettings.setIsPresentationHelpEnabled(true);
      try {
        moduleManager.persistSettings(appSession.getAppPublicKey(), appSettings);
      } catch (Exception e) {
        e.printStackTrace();
      }
    }
  }