@@ -176,7 +176,9 @@ public void onClick(View v) {
176176 * @param text
177177 */
178178 public void setTabText (String text ) {
179- ((TextView ) tabMenuView .getChildAt (current_tab_position )).setText (text );
179+ if (current_tab_position != 1 ) {
180+ ((TextView ) tabMenuView .getChildAt (current_tab_position )).setText (text );
181+ }
180182 }
181183
182184 public void setTabClickable (boolean clickable ) {
@@ -193,9 +195,9 @@ public void closeMenu() {
193195 ((TextView ) tabMenuView .getChildAt (current_tab_position )).setCompoundDrawablesWithIntrinsicBounds (null , null ,
194196 getResources ().getDrawable (menuUnselectedIcon ), null );
195197 popupMenuViews .setVisibility (View .GONE );
196- popupMenuViews .setAnimation (AnimationUtils .loadAnimation (getContext (),R .anim .dd_menu_out ));
198+ popupMenuViews .setAnimation (AnimationUtils .loadAnimation (getContext (),R .anim .dd_menu_out ));
197199 maskView .setVisibility (GONE );
198- maskView .setAnimation (AnimationUtils .loadAnimation (getContext (),R .anim .dd_mask_out ));
200+ maskView .setAnimation (AnimationUtils .loadAnimation (getContext (),R .anim .dd_mask_out ));
199201 current_tab_position = -1 ;
200202
201203 }
@@ -223,9 +225,9 @@ private void switchMenu(View target) {
223225 } else {
224226 if (current_tab_position == -1 ) {
225227 popupMenuViews .setVisibility (View .VISIBLE );
226- popupMenuViews .setAnimation (AnimationUtils .loadAnimation (getContext (),R .anim .dd_menu_in ));
228+ popupMenuViews .setAnimation (AnimationUtils .loadAnimation (getContext (),R .anim .dd_menu_in ));
227229 maskView .setVisibility (VISIBLE );
228- maskView .setAnimation (AnimationUtils .loadAnimation (getContext (),R .anim .dd_mask_in ));
230+ maskView .setAnimation (AnimationUtils .loadAnimation (getContext (),R .anim .dd_mask_in ));
229231 popupMenuViews .getChildAt (i / 2 ).setVisibility (View .VISIBLE );
230232 } else {
231233 popupMenuViews .getChildAt (i / 2 ).setVisibility (View .VISIBLE );
0 commit comments