[Android] Replace old layout
Geoffrey Métais
git at videolan.org
Tue May 12 15:01:50 CEST 2015
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue May 12 15:01:04 2015 +0200| [a6bf3ce7d873ad862344278485ad51a1e3c885f6] | committer: Geoffrey Métais
Replace old layout
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=a6bf3ce7d873ad862344278485ad51a1e3c885f6
---
vlc-android/src/org/videolan/vlc/gui/MRLPanelFragment.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/MRLPanelFragment.java b/vlc-android/src/org/videolan/vlc/gui/MRLPanelFragment.java
index bc8cb31..ad2283a 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MRLPanelFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MRLPanelFragment.java
@@ -47,6 +47,7 @@ public class MRLPanelFragment extends Fragment implements View.OnKeyListener, Te
private RecyclerView.LayoutManager mLayoutManager;
ArrayList<String> mHistory;
EditText mEditText;
+ View mRootView;
public MRLPanelFragment(){};
@@ -58,6 +59,7 @@ public class MRLPanelFragment extends Fragment implements View.OnKeyListener, Te
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState){
((AppCompatActivity) getActivity()).getSupportActionBar().setTitle(R.string.open_mrl_dialog_title);
View v = inflater.inflate(R.layout.mrl_panel, container, false);
+ mRootView = v.findViewById(R.id.mrl_root);
mEditText = (EditText) v.findViewById(R.id.mrl_edit);
mEditText.setOnKeyListener(this);
mEditText.setOnEditorActionListener(this);
@@ -117,11 +119,9 @@ public class MRLPanelFragment extends Fragment implements View.OnKeyListener, Te
}
private void focusHelper(boolean idIsEmpty) {
- View parent = View.inflate(getActivity(),
- R.layout.directory_view, null);
MainActivity main = (MainActivity)getActivity();
main.setMenuFocusDown(idIsEmpty, R.id.mrl_list);
- main.setSearchAsFocusDown(idIsEmpty, parent, R.id.mrl_list);
+ main.setSearchAsFocusDown(idIsEmpty, mRootView, R.id.mrl_list);
}
public boolean isEmpty(){
More information about the Android
mailing list