-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Directly include RequestOptions in ReqestBuilder using CRGP
https://www.artima.com/weblogs/viewpost.jsp?thread=133275 This means that you can write: Glide.with(context) .load(url) .placeholder(R.drawable.placeholder) .into(imageView); Instead of: Glide.with(contex) .apply(placeholderOf(R.drawable.placeholder) .into(imageView); Without using the generated API. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=211640993
- Loading branch information
Showing
42 changed files
with
3,890 additions
and
8,010 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...compiler/src/main/java/com/bumptech/glide/annotation/compiler/FieldUniqueIdGenerator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.bumptech.glide.annotation.compiler; | ||
|
||
/** | ||
* Generates unique field ids for classes generated by Glide's annotation processor. | ||
*/ | ||
final class FieldUniqueIdGenerator { | ||
private static int nextStaticFieldUniqueId; | ||
|
||
private FieldUniqueIdGenerator() { | ||
// Utility class. | ||
} | ||
|
||
static int next() { | ||
return nextStaticFieldUniqueId++; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.