1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-30 05:02:26 -05:00

Stop using deprecated PullToRefresh methods

This commit is contained in:
cketti 2013-02-03 17:22:34 +01:00
parent d5a417d936
commit 869a769e23

View File

@ -99,6 +99,7 @@ import com.fsck.k9.search.SearchSpecification;
import com.fsck.k9.search.SearchSpecification.SearchCondition; import com.fsck.k9.search.SearchSpecification.SearchCondition;
import com.fsck.k9.search.SearchSpecification.Searchfield; import com.fsck.k9.search.SearchSpecification.Searchfield;
import com.fsck.k9.search.SqlQueryBuilder; import com.fsck.k9.search.SqlQueryBuilder;
import com.handmark.pulltorefresh.library.ILoadingLayout;
import com.handmark.pulltorefresh.library.PullToRefreshBase; import com.handmark.pulltorefresh.library.PullToRefreshBase;
import com.handmark.pulltorefresh.library.PullToRefreshListView; import com.handmark.pulltorefresh.library.PullToRefreshListView;
@ -1044,9 +1045,10 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
onRemoteSearchRequested(); onRemoteSearchRequested();
} }
}); });
mPullToRefreshView.setPullLabel(getString( ILoadingLayout proxy = mPullToRefreshView.getLoadingLayoutProxy();
proxy.setPullLabel(getString(
R.string.pull_to_refresh_remote_search_from_local_search_pull)); R.string.pull_to_refresh_remote_search_from_local_search_pull));
mPullToRefreshView.setReleaseLabel(getString( proxy.setReleaseLabel(getString(
R.string.pull_to_refresh_remote_search_from_local_search_release)); R.string.pull_to_refresh_remote_search_from_local_search_release));
} else { } else {
// "Pull to refresh" // "Pull to refresh"