mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-22 16:07:30 +00:00
Preserve ConversationList scroll state in between onPause/onResume.
This commit is contained in:
parent
5cb02445e8
commit
a185750bb7
@ -73,8 +73,8 @@ public class ConversationListFragment extends SherlockListFragment
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onAttach(Activity activity) {
|
public void onAttach(Activity activity) {
|
||||||
super.onAttach(activity);
|
super.onAttach(activity);
|
||||||
this.listener = (ConversationSelectedListener)activity;
|
this.listener = (ConversationSelectedListener)activity;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -100,12 +100,14 @@ public class ConversationListFragment extends SherlockListFragment
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setMasterSecret(MasterSecret masterSecret) {
|
public void setMasterSecret(MasterSecret masterSecret) {
|
||||||
this.masterSecret = masterSecret;
|
if (this.masterSecret != masterSecret) {
|
||||||
initializeListAdapter();
|
this.masterSecret = masterSecret;
|
||||||
|
initializeListAdapter();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressLint({ "NewApi", "NewApi" })
|
@SuppressLint({ "NewApi", "NewApi" })
|
||||||
private void initializeSearch(android.widget.SearchView searchView) {
|
private void initializeSearch(android.widget.SearchView searchView) {
|
||||||
searchView.setOnQueryTextListener(new android.widget.SearchView.OnQueryTextListener() {
|
searchView.setOnQueryTextListener(new android.widget.SearchView.OnQueryTextListener() {
|
||||||
@Override
|
@Override
|
||||||
public boolean onQueryTextSubmit(String query) {
|
public boolean onQueryTextSubmit(String query) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user