[Android] Layout: rename the tab layout with a more generic name
Adrien Maglo
git at videolan.org
Wed Dec 4 16:53:34 CET 2013
vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Wed Dec 4 16:52:56 2013 +0100| [bac11b4045c93b9a9454244965a848fb4c95bc52] | committer: Adrien Maglo
Layout: rename the tab layout with a more generic name
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=bac11b4045c93b9a9454244965a848fb4c95bc52
---
.../res/layout/{audio_browser_tab_layout.xml => tab_layout.xml} | 0
vlc-android/src/org/videolan/vlc/gui/AboutActivity.java | 3 ++-
.../src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java | 2 +-
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/vlc-android/res/layout/audio_browser_tab_layout.xml b/vlc-android/res/layout/tab_layout.xml
similarity index 100%
rename from vlc-android/res/layout/audio_browser_tab_layout.xml
rename to vlc-android/res/layout/tab_layout.xml
diff --git a/vlc-android/src/org/videolan/vlc/gui/AboutActivity.java b/vlc-android/src/org/videolan/vlc/gui/AboutActivity.java
index 3ec2ba7..ab55301 100644
--- a/vlc-android/src/org/videolan/vlc/gui/AboutActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/AboutActivity.java
@@ -96,12 +96,13 @@ public class AboutActivity extends FragmentActivity implements OnTabChangeListen
}
private View getNewTabIndicator(Context context, String title) {
- View v = LayoutInflater.from(context).inflate(R.layout.audio_browser_tab_layout, null);
+ View v = LayoutInflater.from(context).inflate(R.layout.tab_layout, null);
TextView tv = (TextView) v.findViewById(R.id.textView);
tv.setText(title);
return v;
}
+
protected void onSaveInstanceState(Bundle outState) {
outState.putString(CURRENT_TAB_TAG, mCurrentTabTag);
outState.putInt(CURRENT_TAB_ID, mTabHost.getCurrentTab());
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java
index 0cc2c13..d8f0024 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java
@@ -111,7 +111,7 @@ public class AudioAlbumsSongsFragment extends SherlockFragment {
}
private View getNewTabIndicator(Context context, String title) {
- View v = LayoutInflater.from(context).inflate(R.layout.audio_browser_tab_layout, null);
+ View v = LayoutInflater.from(context).inflate(R.layout.tab_layout, null);
TextView tv = (TextView) v.findViewById(R.id.textView);
tv.setText(title);
return v;
More information about the Android
mailing list