@Override
  public void onCreate(Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);

    referenceWalletSession = (LossProtectedWalletSession) appSession;

    lst = new ArrayList<LossProtectedWalletTransaction>();

    getExecutor()
        .execute(
            new Runnable() {
              @Override
              public void run() {
                //                final Drawable drawable =
                // getResources().getDrawable(R.drawable.background_gradient, null);
                getActivity()
                    .runOnUiThread(
                        new Runnable() {
                          @Override
                          public void run() {
                            //
                            // getPaintActivtyFeactures().setActivityBackgroundColor(drawable);
                          }
                        });
              }
            });
    try {
      cryptoWallet = referenceWalletSession.getModuleManager().getCryptoWallet();
      settingsManager = referenceWalletSession.getModuleManager().getSettingsManager();

      LossProtectedWalletSettings bitcoinWalletSettings;
      try {
        bitcoinWalletSettings =
            settingsManager.loadAndGetSettings(referenceWalletSession.getAppPublicKey());
        this.blockchainNetworkType = bitcoinWalletSettings.getBlockchainNetworkType();
      } catch (Exception e) {

      }

      onRefresh();
    } catch (Exception ex) {
      ex.printStackTrace();
      // CommonLogger.exception(TAG, ex.getMessage(), ex);
      Toast.makeText(
              getActivity().getApplicationContext(),
              "Oooops! recovering from system error",
              Toast.LENGTH_SHORT)
          .show();
    }
  }
  @Override
  public NotificationPainter getNotificationPainter(FermatBundle fermatBundle) {
    try {
      LossProtectedWalletSettings lossProtectedWalletSettings;
      int notificationID = fermatBundle.getInt(NotificationBundleConstants.NOTIFICATION_ID);
      String involvedActor = fermatBundle.getString("InvolvedActor");
      long amount = Long.parseLong(String.valueOf(fermatBundle.get("Amount")));

      boolean enabledNotification = true;
      this.lossWalletSession = this.getFullyLoadedSession();
      if (lossWalletSession != null) {
        String walletPublicKey = lossWalletSession.getAppPublicKey();
        if (lossWalletSession.getModuleManager() != null) {
          moduleManager = lossWalletSession.getModuleManager();

          // enable notification settings

          lossProtectedWalletSettings = moduleManager.loadAndGetSettings(walletPublicKey);
          enabledNotification = lossProtectedWalletSettings.getNotificationEnabled();
        }

        if (enabledNotification)
          return LossProtectedWalletBuildNotificationPainter.getNotification(
              notificationID,
              involvedActor,
              amount,
              Activities.CWP_WALLET_RUNTIME_WALLET_LOSS_PROTECTED_WALLET_BITDUBAI_VERSION_1_MAIN
                  .getCode());
        else
          return new LossProtectedWalletNotificationPainter(
              "",
              "",
              "",
              "",
              false,
              Activities.CWP_WALLET_RUNTIME_WALLET_LOSS_PROTECTED_WALLET_BITDUBAI_VERSION_1_MAIN
                  .getCode());

      } else return null;
    } catch (Exception e) {
      e.printStackTrace();
    }
    return null;
  }