Polish landscape and turns

This commit is contained in:
masensio 2015-10-26 11:27:11 +01:00 committed by David A. Velasco
parent f8548b49f1
commit e9c562aa8a

View file

@ -67,6 +67,7 @@ public class ShareActivity extends FileActivity
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
onAccountSet(false);
setContentView(R.layout.share_activity); setContentView(R.layout.share_activity);
@ -85,7 +86,6 @@ public class ShareActivity extends FileActivity
if (mSearchFragment != null){ if (mSearchFragment != null){
ft.hide(mShareFileFragment); ft.hide(mShareFileFragment);
ft.add(R.id.share_fragment_container, mSearchFragment, TAG_SEARCH_FRAGMENT); ft.add(R.id.share_fragment_container, mSearchFragment, TAG_SEARCH_FRAGMENT);
ft.addToBackStack(TAG_SEARCH_FRAGMENT);
} }
ft.commit(); ft.commit();
} }
@ -101,7 +101,7 @@ public class ShareActivity extends FileActivity
handleIntent(getIntent()); handleIntent(getIntent());
onAccountSet(false);
} }
@ -188,8 +188,8 @@ public class ShareActivity extends FileActivity
public void onBackPressed() { public void onBackPressed() {
super.onBackPressed(); super.onBackPressed();
if (mSearchFragment != null){ if (mSearchFragment != null){
getSupportFragmentManager().popBackStackImmediate();
mSearchFragment = null; mSearchFragment = null;
getSupportFragmentManager().popBackStackImmediate();
mShareFileFragment.refreshUsersOrGroupsListFromDB(); mShareFileFragment.refreshUsersOrGroupsListFromDB();
} }
} }
@ -208,6 +208,8 @@ public class ShareActivity extends FileActivity
refreshUsersInLists(); refreshUsersInLists();
} else if(operation instanceof CreateShareWithShareeOperation){ } else if(operation instanceof CreateShareWithShareeOperation){
refreshUsersInLists(); refreshUsersInLists();
// Clean action
getIntent().setAction(null);
} }
} }