Show a hint that plugins are now in the nav drawer
This commit is contained in:
parent
fd24fad641
commit
6c0327b01c
@ -68,6 +68,12 @@
|
||||
• tap and hold a portal for a second<br>
|
||||
• tap on the left half of the status bar]]>
|
||||
</string>
|
||||
<string name="notice_panes">
|
||||
<![CDATA[Hint:<br><br>
|
||||
Some plugins (e.g. portals list and bookmarks) now appear in the navigation drawer for quick access.<br>
|
||||
They won\'t appear in the info pane any more.<br><br>
|
||||
Swipe from the left edge of your screen (or click the app icon) to seem them.]]>
|
||||
</string>
|
||||
|
||||
<string name="pref_ui_cat">UI</string>
|
||||
<string name="pref_misc_cat">Misc</string>
|
||||
|
@ -36,6 +36,7 @@ public class IITC_NavigationHelper extends ActionBarDrawerToggle implements OnIt
|
||||
|
||||
public static final int NOTICE_DRAWERS = 1 << 0;
|
||||
public static final int NOTICE_INFO = 1 << 1;
|
||||
public static final int NOTICE_PANES = 1 << 2;
|
||||
// next one would be 1<<2; (this results in 1,2,4,8,...)
|
||||
|
||||
private final IITC_Mobile mIitc;
|
||||
@ -87,6 +88,9 @@ public class IITC_NavigationHelper extends ActionBarDrawerToggle implements OnIt
|
||||
case NOTICE_INFO:
|
||||
text = mIitc.getText(R.string.notice_info).toString();
|
||||
break;
|
||||
case NOTICE_PANES:
|
||||
text = mIitc.getText(R.string.notice_panes).toString();
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
@ -169,6 +173,8 @@ public class IITC_NavigationHelper extends ActionBarDrawerToggle implements OnIt
|
||||
}
|
||||
|
||||
public void addPane(String name, String label, String icon) {
|
||||
showNotice(NOTICE_PANES);
|
||||
|
||||
int resId = mIitc.getResources().getIdentifier(icon, "drawable", mIitc.getPackageName());
|
||||
mNavigationAdapter.add(new Pane(name, label, resId));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user