updated drawers notice to a how to use notice

This commit is contained in:
Philipp Schaefer
2013-12-04 11:20:33 +01:00
parent 67f273fd6d
commit ca9d631ffe
2 changed files with 8 additions and 4 deletions

View File

@ -12,6 +12,7 @@ import android.preference.PreferenceManager;
import android.support.v4.app.ActionBarDrawerToggle;
import android.support.v4.widget.DrawerLayout;
import android.text.Html;
import android.text.method.LinkMovementMethod;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
@ -83,7 +84,7 @@ public class IITC_NavigationHelper extends ActionBarDrawerToggle implements OnIt
String text;
switch (which) {
case NOTICE_DRAWERS:
text = mIitc.getText(R.string.notice_drawers).toString();
text = mIitc.getText(R.string.notice_how_to).toString();
break;
case NOTICE_INFO:
text = mIitc.getText(R.string.notice_info).toString();
@ -98,6 +99,7 @@ public class IITC_NavigationHelper extends ActionBarDrawerToggle implements OnIt
TextView message = new TextView(mIitc);
message.setPadding(20, 20, 20, 20);
message.setText(Html.fromHtml(text));
message.setMovementMethod(LinkMovementMethod.getInstance());
AlertDialog dialog = new AlertDialog.Builder(mIitc)
.setView(message)