mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 17:46:37 +03:00
Polish landscape and turns
This commit is contained in:
parent
f8548b49f1
commit
e9c562aa8a
1 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue