From 288997831c1f60bdeb72b51010d14de7fa345acf Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 19 Jan 2012 13:46:28 +0300 Subject: [PATCH] do not use savedstate putstring/getstring to prevent crashe on legacy platform versions --- src/org/fox/ttrss/HeadlinesFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/fox/ttrss/HeadlinesFragment.java b/src/org/fox/ttrss/HeadlinesFragment.java index 1f33e746..b2741417 100644 --- a/src/org/fox/ttrss/HeadlinesFragment.java +++ b/src/org/fox/ttrss/HeadlinesFragment.java @@ -111,7 +111,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, 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); @@ -225,7 +225,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, 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) {