Commit ef1160b2 authored by Thomas Markiewicz's avatar Thomas Markiewicz
Browse files

Removed support, policy, and stay-safe links from main app menu since these...

Removed support, policy, and stay-safe links from main app menu since these are moving to liberty-hub-android
parent 5a7c6899
Pipeline #51001 passed with stages
in 12 minutes and 29 seconds
......@@ -95,9 +95,6 @@ public final class MainActivity extends BottomSheetActivity implements ActionBut
private static final long DRAWER_ITEM_SAVED_TOOT = 4;
private static final long DRAWER_ITEM_ACCOUNT_SETTINGS = 5;
private static final long DRAWER_ITEM_SETTINGS = 6;
private static final long DRAWER_ITEM_SUPPORT = 7;
private static final long DRAWER_ITEM_POLICY = 8;
private static final long DRAWER_ITEM_STAY_SAFE = 9;
private static final long DRAWER_ITEM_ABOUT = 10;
private static final long DRAWER_ITEM_LOG_OUT = 11;
private static final long DRAWER_ITEM_FOLLOW_REQUESTS = 12;
......@@ -406,11 +403,7 @@ public final class MainActivity extends BottomSheetActivity implements ActionBut
listItems.add(new DividerDrawerItem());
listItems.add(new SecondaryDrawerItem().withIdentifier(DRAWER_ITEM_ACCOUNT_SETTINGS).withName(R.string.action_view_account_preferences).withSelectable(false).withIcon(R.drawable.ic_account_settings).withIconTintingEnabled(true));
listItems.add(new SecondaryDrawerItem().withIdentifier(DRAWER_ITEM_SETTINGS).withName(R.string.action_view_preferences).withSelectable(false).withIcon(GoogleMaterial.Icon.gmd_settings));
listItems.add(new SecondaryDrawerItem().withIdentifier(DRAWER_ITEM_SUPPORT).withName(R.string.support).withSelectable(false).withIcon(GoogleMaterial.Icon.gmd_help));
listItems.add(new SecondaryDrawerItem().withIdentifier(DRAWER_ITEM_POLICY).withName(R.string.policy).withSelectable(false).withIcon(GoogleMaterial.Icon.gmd_assignment));
listItems.add(new SecondaryDrawerItem().withIdentifier(DRAWER_ITEM_STAY_SAFE).withName(R.string.stay_safe).withSelectable(false).withIcon(GoogleMaterial.Icon.gmd_do_not_disturb_on));
listItems.add(new SecondaryDrawerItem().withIdentifier(DRAWER_ITEM_ABOUT).withName(R.string.about_title_activity).withSelectable(false).withIcon(GoogleMaterial.Icon.gmd_info));
// tom: add links here
listItems.add(new SecondaryDrawerItem().withIdentifier(DRAWER_ITEM_LOG_OUT).withName(R.string.action_logout).withSelectable(false).withIcon(R.drawable.ic_logout).withIconTintingEnabled(true));
drawer = new DrawerBuilder()
......@@ -437,12 +430,6 @@ public final class MainActivity extends BottomSheetActivity implements ActionBut
} else if (drawerItemIdentifier == DRAWER_ITEM_SETTINGS) {
Intent intent = PreferencesActivity.newIntent(MainActivity.this, PreferencesActivity.GENERAL_PREFERENCES);
startActivityWithSlideInAnimation(intent);
} else if (drawerItemIdentifier == DRAWER_ITEM_SUPPORT) {
displayInWebView(R.string.support_url);
} else if (drawerItemIdentifier == DRAWER_ITEM_POLICY) {
displayInWebView(R.string.policy_url);
} else if (drawerItemIdentifier == DRAWER_ITEM_STAY_SAFE) {
displayInWebView(R.string.stay_safe_url);
} else if (drawerItemIdentifier == DRAWER_ITEM_ABOUT) {
Intent intent = new Intent(MainActivity.this, AboutActivity.class);
startActivityWithSlideInAnimation(intent);
......@@ -460,7 +447,6 @@ public final class MainActivity extends BottomSheetActivity implements ActionBut
} else if (drawerItemIdentifier == DRAWER_ITEM_LISTS) {
startActivityWithSlideInAnimation(ListsActivity.newIntent(this));
}
}
return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment