Skip to content

Commit

Permalink
do not use savedstate putstring/getstring to prevent crashe on legacy
Browse files Browse the repository at this point in the history
platform versions
  • Loading branch information
Andrew Dolgov committed Jan 19, 2012
1 parent 3620e51 commit 2889978
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/fox/ttrss/HeadlinesFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle sa
m_selectedArticles = savedInstanceState.getParcelable("selectedArticles");
m_canLoadMore = savedInstanceState.getBoolean("canLoadMore");
m_combinedMode = savedInstanceState.getBoolean("combinedMode");
m_searchQuery = savedInstanceState.getString("searchQuery", "");
m_searchQuery = (String) savedInstanceState.getCharSequence("searchQuery");
}

View view = inflater.inflate(R.layout.headlines_fragment, container, false);
Expand Down Expand Up @@ -225,7 +225,7 @@ public void onSaveInstanceState (Bundle out) {
out.putParcelable("selectedArticles", m_selectedArticles);
out.putBoolean("canLoadMore", m_canLoadMore);
out.putBoolean("combinedMode", m_combinedMode);
out.putString("searchQuery", m_searchQuery);
out.putCharSequence("searchQuery", m_searchQuery);
}

public void setLoadingStatus(int status, boolean showProgress) {
Expand Down

0 comments on commit 2889978

Please sign in to comment.