24
24
import android .webkit .WebView ;
25
25
import android .widget .Toast ;
26
26
27
+ import com .actionbarsherlock .app .ActionBar ;
27
28
import com .actionbarsherlock .app .SherlockFragment ;
28
29
import com .actionbarsherlock .view .Menu ;
29
30
import com .actionbarsherlock .view .MenuInflater ;
@@ -55,7 +56,6 @@ public class ShowContentFragment extends SherlockFragment {
55
56
public int swipeThresholdVelocity ;
56
57
public int swipeMaxOffPath ;
57
58
private WebView mUrlContentWebView ;
58
- private String mContentSource ;
59
59
private ArrayList <String > mListOfLinks ;
60
60
private Integer mId = 0 ;
61
61
@@ -69,8 +69,8 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
69
69
Bundle savedInstanceState ) {
70
70
super .onCreateView (inflater , container , savedInstanceState );
71
71
View view = inflater .inflate (R .layout .show_content , container , false );
72
- mContentSource = getArguments ().getString ( "contentSource" );
73
- getActivity () .setTitle (mContentSource );
72
+ ActionBar actionBar = getSherlockActivity ().getSupportActionBar ( );
73
+ actionBar .setTitle (R . string . show_content );
74
74
mListOfLinks = getArguments ().getStringArrayList ("listOfLinks" );
75
75
View webView = view .findViewById (R .id .urlContentWebview );
76
76
mUrlContentWebView = (WebView ) webView ;
0 commit comments