[vlc-devel] [PATCH 1/2] Add menu option to refresh media list
XilasZ
xilasz at gmail.com
Sun Feb 12 10:33:02 CET 2012
Applied, thanks
On Sat, Feb 11, 2012 at 7:59 PM, Edward Wang
<edward.c.wang at compdigitec.com>wrote:
> ---
> vlc-android/res/drawable-hdpi/ic_menu_refresh.png | Bin 0 -> 3045 bytes
> vlc-android/res/drawable-ldpi/ic_menu_refresh.png | Bin 0 -> 1483 bytes
> vlc-android/res/menu/media_library.xml | 8 ++++++--
> vlc-android/res/values/strings.xml | 1 +
> .../src/org/videolan/vlc/android/MainActivity.java | 4 ++++
> 5 files changed, 11 insertions(+), 2 deletions(-)
> create mode 100644 vlc-android/res/drawable-hdpi/ic_menu_refresh.png
> create mode 100644 vlc-android/res/drawable-ldpi/ic_menu_refresh.png
>
> diff --git a/vlc-android/res/drawable-hdpi/ic_menu_refresh.png
> b/vlc-android/res/drawable-hdpi/ic_menu_refresh.png
> new file mode 100644
> index
> 0000000000000000000000000000000000000000..1c64bbe9ea1f9d89449ad89342d5e0a49e0c11e2
> GIT binary patch
> literal 3045
> zcmV<B3mWu^P)<h;3K|Lk000e1NJLTq002k;002k`1ONa4|Kxkj00009c5p#w0000;
> z0000;0M2>v1poj50%A)?L;wJ)jUzGu000SaNLh0L002k;002k;M#*bF000YgNkl<Z
> zXx{Bv32+ou8h+h9lLR8DxQI}@E?$dSSgqYcU0rp(tyRONND#;cBoJ}{VUkH^GP&>j
> zB<F;%0bD>#xI&1Ek^s9D=z at v|(UJf`L<EI}WTyLl`*%+gPN|&<<yuzWS8t|Y_j|9u
> z{`<e)YsLo3Kp7|lWuW|`3ogOWhRUVw{|l9F$BhLhJ|Iof`RJ$V at 0FNHZ7Sz}N?K=_
> zjqTKqLc}#Xh?h|nnspXQJz7isK48at&L1a&``LTfo94f0LP3=Z-55HmgX-?Lyt*(v
> zC^INKI5RTX<Wn;qo^+M2snVN4{m(FkbyDMTZH7RqL$4Q|kEl)*9wnK;?clGnpA0Vc
> zI}mU@;L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pwYL10lJgrCJ#N_Gvus-d`65*|Mv843&;zYy)D$|MR%I*7
> z-})oT#Z8 at U$Mx6 at zMH)xY<jpM>|@HM|49z-9dQ>aX8Xv^)9dz>$=T%YOb%j1O{Ec|
> zDRUBXQF&%n?Y6&wJb5J<dN<pCJ$9!@UzB`V$pySg|BG0<YAX_M-aEcAcKNRA&XUu4
> z-C0_ulg$gxEj?-NsNc3B?DM-ZSdICGqWb0I!1da at pG@^Gsy?KUhbRa9o(N83M#rZG
> zi6DGB=G_-J&ufTZm%A=&y>W|Q+mjffU88t)lTgmCwkgria)h-rh0yyNyXg3oc5D$^
> z^;dj+VV%0Sb!v1Q%+B_O+n?kE6{je#mPdsI$*QZ<FVk1(qQ%id?^Q7NQ+_$aH9z3}
> n%)TrRlz}o(2FgJBrI-H#DGW}pJcUC300000NkvXXu0mjfuz$P2
>
> literal 0
> HcmV?d00001
>
> diff --git a/vlc-android/res/drawable-ldpi/ic_menu_refresh.png
> b/vlc-android/res/drawable-ldpi/ic_menu_refresh.png
> new file mode 100644
> index
> 0000000000000000000000000000000000000000..33ca4c90bb111888cbcf7aa6a7458e543e5fd1cd
> GIT binary patch
> literal 1483
> zcmV;+1vL7JP)<h;3K|Lk000e1NJLTq001Na001Ni1ONa4O9 at aD00009c5p#w0000a
> z0000a0C)!*j{pDw0%A)?L;wJ)jUzGu000SaNLh0L002k;002k;M#*bF000GANkl<Z
> zNXO;XYi!h28prYP`Txfkf*LO`BtZqQQQ|JUAt?ye7;Yt?h_IASi&T1n>7BN;bfz=o
> zbcSh}X*;EKI%TGvp_EHYi*#uXkcyyD5lC3F>n<DOHHu1zG11_qotgjR3(am?N;d9W
> z&-3oQ_~bb!=R807J+9RNEFy#Z{(odHix}n%$Js^+A<l3J`EA4|AeR&(Y*U%~0=-xb
> zsAsfgx<&V at H+h^(^iqox7Y!`GITPVB4+4eS60MlZ|LmvmCmtbP_bM=}6`D;oP|f1W
> zk=HoRle|nfFK8+1Q7RtD+gR99aIEN!f<B8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2(iL}0%i(#vs1D=0 at vqG%LY7v6qt7XhF?-UP
> zbQ-0Sb!}~5X7xIY*}3+_OFxu}GwFysrTLSAnIr7epqD2mn~$rt4LEn%q;AX`w at Yop
> zk*Jm;$(KCImlCNl9P!$?Ljqq6q(o at foD5NRBeRf8tkG9uuXjqQ>+th|&z(|ZSQEBU
> z+o*NSHfkHSCap%D?0WCmqcH+n20J*3XR^We20qP4;JHZXgDJ;(>;7m{)7NgX8&<K3
> zP3(q80-yG5yLkIIgf*DKySzIYWBRq+)Ztb&T9GQ|qiKEXqOI*iZKpy<_V@=@e|G0t
> zyjoD3%W6KQ{$@dRmKnf8^|IEhX49{gXu^MMH%s|5E`3mii7?3dn<v^Sh8g6qoJ2TE
> z7UvjJ5j|hOU7 at C_Qa!4lP+wx at 6hh>GrECTnWMC#6A3=n(T;@%Nd7G~|MjENWoxeT*
> l&CFpoE$qV&z|;Ir*Ut)>b)$UC#l!#r002ovPDHLkV1g!w$ru0t
>
> literal 0
> HcmV?d00001
>
> diff --git a/vlc-android/res/menu/media_library.xml
> b/vlc-android/res/menu/media_library.xml
> index 8f34276..06c0166 100644
> --- a/vlc-android/res/menu/media_library.xml
> +++ b/vlc-android/res/menu/media_library.xml
> @@ -18,7 +18,11 @@
> android:icon="@android:drawable/ic_menu_info_details"
> android:title="@string/about" />
> <item
> - android:title="@string/preferences"
> + android:id="@+id/ml_menu_preferences"
> android:icon="@android:drawable/ic_menu_preferences"
> - android:id="@+id/ml_menu_preferences" />
> + android:title="@string/preferences" />
> + <item
> + android:id="@+id/ml_menu_refresh"
> + android:icon="@drawable/ic_menu_refresh"
> + android:title="@string/refresh" />
> </menu>
> diff --git a/vlc-android/res/values/strings.xml
> b/vlc-android/res/values/strings.xml
> index 7427205..3160165 100644
> --- a/vlc-android/res/values/strings.xml
> +++ b/vlc-android/res/values/strings.xml
> @@ -65,4 +65,5 @@
> <string name="quit">Quit Application</string>
> <string name="detect_headset">Detect headset</string>
> <string name="detect_headset_detail">Pause on headset removed, Resume
> on headset inserted</string>
> + <string name="refresh">Refresh</string>
> </resources>
> diff --git a/vlc-android/src/org/videolan/vlc/android/MainActivity.java
> b/vlc-android/src/org/videolan/vlc/android/MainActivity.java
> index bb51e17..e4442c3 100644
> --- a/vlc-android/src/org/videolan/vlc/android/MainActivity.java
> +++ b/vlc-android/src/org/videolan/vlc/android/MainActivity.java
> @@ -207,6 +207,10 @@ public class MainActivity extends TabActivity {
> intent = new Intent(this, PreferencesActivity.class);
> startActivity(intent);
> break;
> + // Refresh
> + case R.id.ml_menu_refresh:
> + MediaLibrary.getInstance(this).loadMediaItems();
> + break;
> }
> return super.onOptionsItemSelected(item);
> }
> --
> 1.7.5.4
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120212/ccde108b/attachment.html>
More information about the vlc-devel
mailing list