Commit 8577ca6e authored by Roger Barton's avatar Roger Barton
Browse files

Cleaning up, removed unnecessary UI, added todo

parent b506fa56
......@@ -155,16 +155,6 @@ public class EventsListAdapter extends RecyclerView.Adapter<RecyclerView.ViewHol
eventInfoHolder.placesField.setText((e.spots == 0 ? "" : "" + (e.spots - e.signup_count)));
}
break;
/*XXXXX
Sort events upcoming and attended events, hide unattended old events
show event date in infos, if start end are not equal then show both, formatting
prevent refreshing events on rotate/slide, remove from onresume
Create mini app module design, example barcode generator
Add checkin app as module
Add job offers page in main activity page viewer
Test if token has expired or is wrong when we get an auth error from the server, notify user and logout*/
}
}
......
......@@ -58,11 +58,11 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
case R.id.bottom_nav_home:
viewPager.setCurrentItem(0);
return true;
case R.id.bottom_nav_blitz:
/*case R.id.bottom_nav_blitz:
viewPager.setCurrentItem(1);
return true;
return true;*/
case R.id.bottom_nav_events:
viewPager.setCurrentItem(2);
viewPager.setCurrentItem(1);
return true;
}
return false;
......@@ -129,9 +129,9 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
//need to convert index to resource id
if(position == 0)
position = R.id.bottom_nav_home;
/*else if (position == 1)
position = R.id.bottom_nav_blitz;*/
else if (position == 1)
position = R.id.bottom_nav_blitz;
else if (position == 2)
position = R.id.bottom_nav_events;
bottomNavigation.setSelectedItemId(position);
......@@ -290,13 +290,8 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
StartLoginActivity();
} else if (id == R.id.nav_checkin) {
} else if (id == R.id.nav_settings) {
} else if (id == R.id.nav_settings)
StartSettingsActivity();
} else if (id == R.id.nav_dev_log) {
} else if (id == R.id.nav_dev_request) {
}
DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
drawer.closeDrawer(GravityCompat.START);
......@@ -318,7 +313,7 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
@Override
public int getCount() {
return 3;
return 2;
}
@Override
......
......@@ -26,18 +26,4 @@
android:title="Demo App" />
</menu>
</item>
<item android:title="Developers">
<menu>
<item
android:id="@+id/nav_dev_log"
android:icon="@drawable/ic_menu_manage"
android:title="Log" />
<item
android:id="@+id/nav_dev_request"
android:icon="@drawable/ic_menu_send"
android:title="Send Request" />
</menu>
</item>
</menu>
......@@ -6,14 +6,15 @@
android:icon="@drawable/ic_home_black_24dp"
android:title="@string/title_home" />
<!--
<item
android:id="@+id/bottom_nav_blitz"
android:icon="@drawable/ic_dashboard_black_24dp"
android:title="@string/title_articles" />
-->
<item
android:id="@+id/bottom_nav_events"
android:icon="@drawable/ic_notifications"
android:title="@string/title_notifications" />
</menu>
TODO list
=========
Sort events upcoming and attended events, hide unattended old events
show event date in infos, if start end are not equal then show both, formatting
prevent refreshing events on rotate/slide, remove from onresume
Create mini app module design, example barcode generator
Add checkin app as module
Add job offers page in main activity page viewer
Add language switching, use strings.xml
Aspirational
===========
Test if token has expired or is wrong when we get an auth error from the server, notify user and logout
Add error handling of requests, max retries,
Supports Markdown
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