mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-23 17:22:16 -05:00
show app name instead of keys in main list
This commit is contained in:
parent
32acd94698
commit
6008b65bbd
@ -227,6 +227,9 @@ public class KeyListFragment extends LoaderFragment
|
|||||||
public void onActivityCreated(Bundle savedInstanceState) {
|
public void onActivityCreated(Bundle savedInstanceState) {
|
||||||
super.onActivityCreated(savedInstanceState);
|
super.onActivityCreated(savedInstanceState);
|
||||||
|
|
||||||
|
// show app name instead of "keys" from nav drawer
|
||||||
|
getActivity().setTitle(R.string.app_name);
|
||||||
|
|
||||||
mStickyList.setOnItemClickListener(this);
|
mStickyList.setOnItemClickListener(this);
|
||||||
mStickyList.setAreHeadersSticky(true);
|
mStickyList.setAreHeadersSticky(true);
|
||||||
mStickyList.setDrawingListUnderStickyHeader(false);
|
mStickyList.setDrawingListUnderStickyHeader(false);
|
||||||
|
@ -24,6 +24,8 @@ import org.sufficientlysecure.keychain.R;
|
|||||||
import org.sufficientlysecure.keychain.remote.ui.AppsListFragment;
|
import org.sufficientlysecure.keychain.remote.ui.AppsListFragment;
|
||||||
|
|
||||||
import it.neokree.materialnavigationdrawer.MaterialNavigationDrawer;
|
import it.neokree.materialnavigationdrawer.MaterialNavigationDrawer;
|
||||||
|
import it.neokree.materialnavigationdrawer.elements.MaterialSection;
|
||||||
|
import it.neokree.materialnavigationdrawer.elements.listeners.MaterialSectionListener;
|
||||||
|
|
||||||
public abstract class NavDrawerActivity extends MaterialNavigationDrawer {
|
public abstract class NavDrawerActivity extends MaterialNavigationDrawer {
|
||||||
|
|
||||||
@ -39,7 +41,7 @@ public abstract class NavDrawerActivity extends MaterialNavigationDrawer {
|
|||||||
setDrawerHeaderImage(R.drawable.drawer_header);
|
setDrawerHeaderImage(R.drawable.drawer_header);
|
||||||
|
|
||||||
// create sections
|
// create sections
|
||||||
addSection(newSection(getString(R.string.app_name), R.drawable.ic_vpn_key_black_24dp, new KeyListFragment()));
|
addSection(newSection(getString(R.string.nav_keys), R.drawable.ic_vpn_key_black_24dp, new KeyListFragment()));
|
||||||
addSection(newSection(getString(R.string.nav_encrypt_decrypt), R.drawable.ic_lock_black_24dp, new EncryptDecryptOverviewFragment()));
|
addSection(newSection(getString(R.string.nav_encrypt_decrypt), R.drawable.ic_lock_black_24dp, new EncryptDecryptOverviewFragment()));
|
||||||
addSection(newSection(getString(R.string.title_api_registered_apps), R.drawable.ic_apps_black_24dp, new AppsListFragment()));
|
addSection(newSection(getString(R.string.title_api_registered_apps), R.drawable.ic_apps_black_24dp, new AppsListFragment()));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user