Skip to content

Instantly share code, notes, and snippets.

View iTwenty's full-sized avatar
:octocat:

Jaydeep Joshi iTwenty

:octocat:
View GitHub Profile
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Attempted to access the table view's visibleCells while they were in the process of being updated, which is not allowed. Table view: <UITableView: 0x1030a1200; frame = (0 0; 540 620); clipsToBounds = YES; autoresize = RM+BM; gestureRecognizers = <NSArray: 0x28012ef40>; animations = { bounds.origin=<CABasicAnimation: 0x280f3fd20>; bounds.size=<CABasicAnimation: 0x280f3fd40>; }; layer = <CALayer: 0x280f1b780>; contentOffset: {0, 44}; contentSize: {540, 845.5}; adjustedContentInset: {801.66666666666663, 0, 0, 0}; dataSource: <HsConversationViewController: 0x1020a7000>>'
@iTwenty
iTwenty / ic_ratecard.xml
Created April 27, 2016 06:29
ratecard XML
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:pathData="M9.507,8.423C9.334,8.423 9.206,8.375 9.123,8.28C9.041,8.185 9,8.076 9,7.955C9,7.834 9.041,7.728 9.123,7.636C9.206,7.545 9.334,7.5 9.507,7.5L14.317,7.5C14.49,7.5 14.618,7.548 14.7,7.643C14.783,7.738 14.824,7.847 14.824,7.968C14.824,8.089 14.783,8.195 14.7,8.286C14.618,8.378 14.49,8.423 14.317,8.423L13.615,8.423C13.312,8.423 13.056,8.419 12.848,8.41C12.64,8.401 12.514,8.393 12.471,8.384L12.471,8.436C12.653,8.514 12.831,8.644 13.004,8.826C13.177,9.008 13.307,9.238 13.394,9.515L14.317,9.515C14.49,9.515 14.618,9.563 14.7,9.658C14.783,9.753 14.824,9.862 14.824,9.983C14.824,10.104 14.783,10.21 14.7,10.302C14.618,10.393 14.49,10.438 14.317,10.438L13.459,10.438C13.416,10.837 13.307,11.177 13.134,11.458C12.961,11.74 12.751,11.972 12.503,12.154C12.256,12.336 11.984,12.475 11.684,12.57C1
@iTwenty
iTwenty / CursorPagerAdapter
Last active August 29, 2015 14:14
CursorPagerAdapter that doesn't need projection. Added changeCursor method that closes old cursor after swapping
package com.t3methods.happysmiles.app.ui.adapters;
import android.database.Cursor;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
public class CursorPagerAdapter<F extends Fragment> extends FragmentStatePagerAdapter
{