use of android.support.annotation.Nullable in project MaterialIntroView by iammert.
the class RecyclerviewFragment method onCreateView.
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_recyclerview, container, false);
recyclerView = (RecyclerView) view.findViewById(R.id.recycler_view);
initializeRecyclerview();
loadData();
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
showMaterialIntro();
}
}, 2000);
return view;
}
use of android.support.annotation.Nullable in project android-oss by kickstarter.
the class BaseFragment method onCreateView.
/**
* Called when a fragment instantiates its user interface view, between `onCreate` and `onActivityCreated`.
* Can return null for non-graphical fragments.
*/
@CallSuper
@Override
@Nullable
public View onCreateView(@NonNull final LayoutInflater inflater, @Nullable final ViewGroup container, @Nullable final Bundle savedInstanceState) {
final View view = super.onCreateView(inflater, container, savedInstanceState);
Timber.d("onCreateView %s", this.toString());
lifecycle.onNext(FragmentEvent.CREATE_VIEW);
return view;
}
use of android.support.annotation.Nullable in project k-9 by k9mail.
the class AttachmentProvider method getAttachmentDataSource.
@Nullable
private OpenPgpDataSource getAttachmentDataSource(String accountUuid, String attachmentId) throws MessagingException {
final Account account = Preferences.getPreferences(getContext()).getAccount(accountUuid);
LocalStore localStore = LocalStore.getInstance(account, getContext());
return localStore.getAttachmentDataSource(attachmentId);
}
use of android.support.annotation.Nullable in project SeriesGuide by UweTrottmann.
the class PurchaseDataSource method getEntitlementRecordByReceiptId.
/**
* Find entitlement record by specified receipt ID.
*/
@Nullable
public PurchaseRecord getEntitlementRecordByReceiptId(final String receiptId) {
Timber.d("getEntitlementRecordByReceiptId: receiptId (%s)", receiptId);
final String where = AmazonBillingSQLiteHelper.COLUMN_RECEIPT_ID + "= ?";
final Cursor cursor = database.query(AmazonBillingSQLiteHelper.TABLE_PURCHASES, allColumns, where, new String[] { receiptId }, null, null, null);
final PurchaseRecord result;
cursor.moveToFirst();
if (cursor.isAfterLast()) {
result = null;
Timber.d("getEntitlementRecordByReceiptId: no record found ");
} else {
result = cursorToPurchaseRecord(cursor);
Timber.d("getEntitlementRecordByReceiptId: found ");
}
cursor.close();
return result;
}
use of android.support.annotation.Nullable in project SeriesGuide by UweTrottmann.
the class PurchaseDataSource method getLatestEntitlementRecordBySku.
/**
* Return the entitlement for given user and sku.
*/
@Nullable
public PurchaseRecord getLatestEntitlementRecordBySku(String userId, String sku) {
Timber.d("getEntitlementRecordBySku: userId (%s), sku (%s)", userId, sku);
final String where = AmazonBillingSQLiteHelper.COLUMN_USER_ID + " = ? and " + AmazonBillingSQLiteHelper.COLUMN_SKU + " = ?";
final Cursor cursor = database.query(AmazonBillingSQLiteHelper.TABLE_PURCHASES, allColumns, where, new String[] { userId, sku }, null, null, AmazonBillingSQLiteHelper.COLUMN_DATE_FROM + " desc ");
final PurchaseRecord result;
cursor.moveToFirst();
if (cursor.isAfterLast()) {
result = null;
Timber.d("getEntitlementRecordBySku: no record found ");
} else {
result = cursorToPurchaseRecord(cursor);
Timber.d("getEntitlementRecordBySku: found ");
}
cursor.close();
return result;
}
Aggregations