1515
1616public class Breadcrumbs extends LinearLayout implements View .OnClickListener {
1717 private int mDeviceWidth ;
18- private boolean mShowFullPath ;
1918
2019 private LayoutInflater mInflater ;
2120 private BreadcrumbsListener mListener ;
@@ -102,10 +101,10 @@ protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
102101 }
103102
104103 public void setInitialBreadcrumb (String fullPath ) {
105- mShowFullPath = Config .newInstance (getContext ()).getShowFullPath ();
104+ final boolean showFullPath = Config .newInstance (getContext ()).getShowFullPath ();
106105 final String basePath = Environment .getExternalStorageDirectory ().toString ();
107106 String tempPath = fullPath ;
108- if (!mShowFullPath ) {
107+ if (!showFullPath ) {
109108 tempPath = fullPath .replace (basePath , getContext ().getString (R .string .initial_breadcrumb ) + "/" );
110109 }
111110
@@ -116,18 +115,18 @@ public void setInitialBreadcrumb(String fullPath) {
116115 final String dir = dirs [i ];
117116 if (i > 0 ) {
118117 currPath += dir + "/" ;
119- } else if (mShowFullPath ) {
118+ } else if (showFullPath ) {
120119 addRootFolder ();
121120 }
122121
123122 if (dir .isEmpty ())
124123 continue ;
125124
126125 final FileDirItem item = new FileDirItem (i > 0 ? currPath : basePath , dir , true , 0 , 0 );
127- addBreadcrumb (item , i > 0 || mShowFullPath );
126+ addBreadcrumb (item , i > 0 || showFullPath );
128127 }
129128
130- if (dirs .length == 0 && mShowFullPath ) {
129+ if (dirs .length == 0 && showFullPath ) {
131130 addRootFolder ();
132131 }
133132 }
0 commit comments