Improve GalleryListScene
This commit is contained in:
1 parent
d1650c4ec5
commit
24a64c23dc
17 files changed
+326
-46
No files matched your search
@@ -39,6 +39,11 @@ public class SceneFragment extends Fragment {
|
||||
return LAUNCH_MODE_STANDARD;
|
||||
}
|
||||
|
||||
public int getSoftInputMode() {
|
||||
return 0; // WindowManager.LayoutParams.SOFT_INPUT_STATE_UNSPECIFIED |
|
||||
// WindowManager.LayoutParams.SOFT_INPUT_ADJUST_UNSPECIFIED
|
||||
}
|
||||
|
||||
public void onNewArguments(@NonNull Bundle args) {}
|
||||
|
||||
public <T extends SceneFragment> void startScene(Class<T> clazz) {
|
||||
@@ -66,6 +71,18 @@ public class SceneFragment extends Fragment {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return negative for error
|
||||
*/
|
||||
public int getStackIndex() {
|
||||
FragmentActivity activity = getActivity();
|
||||
if (activity instanceof StageActivity) {
|
||||
return ((StageActivity) activity).getStackIndex(this);
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return true for handle this back pressed action
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user