Back to project page Munin-for-Android.
The source code is released under:
GNU General Public License
If you think the Android project Munin-for-Android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.chteuchteu.munin.ui; //from www.ja va 2 s .co m import android.content.Context; import android.support.v4.widget.DrawerLayout; import android.util.AttributeSet; import android.view.MotionEvent; /** * On a layout using PhotoView, zooming on the view makes the app crash * We have to catch the exception using this custom HackyDrawerLayout. * Used on Activity_GraphView layout (activity_graphview.xml) */ public class HackyDrawerLayout extends DrawerLayout { public HackyDrawerLayout(Context context) { super(context); } public HackyDrawerLayout(Context context, AttributeSet attrs) { super(context, attrs); } public HackyDrawerLayout(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Override public boolean onInterceptTouchEvent(MotionEvent ev) { try { return super.onInterceptTouchEvent(ev); } catch (Throwable t) { t.printStackTrace(); return false; } } }