Ejemplo n.º 1
0
  /**
   * Restores window state from the preferences storage, including window size and position, and
   * splitter bar position.
   */
  private void restoreWindowState() {
    Preferences prefs = Preferences.userNodeForPackage(getClass()).node(NODENAME);

    mSizePosSaver.restoreSizeAndPosition();

    mChatSplitter.setDividerLocation(prefs.getInt(CHAT_SPLIT_POS, getHeight() - 100));
  }
Ejemplo n.º 2
0
  /**
   * Saves window state to the preferences storage, including window size and position, and splitter
   * bar position.
   */
  private void saveWindowState() {
    Preferences prefs = Preferences.userNodeForPackage(getClass()).node(NODENAME);

    mSizePosSaver.saveSizeAndPosition();

    prefs.putInt(CHAT_SPLIT_POS, mChatSplitter.getDividerLocation());
  }