Comments (2)
able to filter now
74cd1e0
But still 2 bugs
- empty tab at the end
- the first tab is empty until I swipe to the right twice and swipe back (the loading tab is the submenu)
this code is all wrong
from android-chefmenu.
04-05 08:30:47.337 2042-2042/com.wordpress.tonytam.chefsmenu E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.wordpress.tonytam.chefsmenu, PID: 2042
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.wordpress.tonytam.chefsmenu/com.wordpress.tonytam.chefsmenu.ChefMenuActivity}: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2298)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)
at android.app.ActivityThread.access$800(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5221)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
Caused by: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
at java.util.ArrayList.get(ArrayList.java:308)
at com.wordpress.tonytam.chefsmenu.ChefMenuActivity$SectionsPagerAdapter$1.onDataReady(ChefMenuActivity.java:109)
at com.wordpress.tonytam.chefsmenu.MenuRestClientUse.readOffineData(MenuRestClientUse.java:230)
at com.wordpress.tonytam.chefsmenu.MenuRestClientUse.fetchMenuItems(MenuRestClientUse.java:59)
at com.wordpress.tonytam.chefsmenu.ChefMenuActivity$SectionsPagerAdapter.(ChefMenuActivity.java:102)
at com.wordpress.tonytam.chefsmenu.ChefMenuActivity.onCreate(ChefMenuActivity.java:52)
at android.app.Activity.performCreate(Activity.java:5933)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)
at android.app.ActivityThread.access$800(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5221)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
from android-chefmenu.
Related Issues (15)
- screenshots HOT 2
- Crashing on native device: No view found for id 0x7f090050 (com.wordpress.tonytam.chefsmenu:id/menu_placeholder_menu_detail) for fragment MenuListFragment{41e67940 #1 id=0x7f090050}
- handle network failures: onFailure(int, Header[], Throwable, JSONObject) was not overriden, but callback was received HOT 1
- onFailure(int, Header[], Throwable, JSONObject) was not overriden
- Selecting a submenu greater than 3, getting exception. HOT 1
- Build an offline menu data HOT 1
- Handle basic networking failures HOT 1
- Add ability to favorite items HOT 2
- Add transparent hover for swipe left and right
- Ability to add 'email me' these favs and capture emails
- Add search/filter functionality
- capturing NullPointerException ?
- Dynamically size the photo to be about 1/3 of the width of the screen
- Getting duplicate and overlapping fragments HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-chefmenu.