equal
deleted
inserted
replaced
48 public boolean isValid(Target t) { |
48 public boolean isValid(Target t) { |
49 return true; |
49 return true; |
50 } |
50 } |
51 }; |
51 }; |
52 |
52 |
53 private static final Context.Key<Profile> profileKey = |
53 private static final Context.Key<Profile> profileKey = new Context.Key<>(); |
54 new Context.Key<Profile>(); |
|
55 |
54 |
56 public static Profile instance(Context context) { |
55 public static Profile instance(Context context) { |
57 Profile instance = context.get(profileKey); |
56 Profile instance = context.get(profileKey); |
58 if (instance == null) { |
57 if (instance == null) { |
59 Options options = Options.instance(context); |
58 Options options = Options.instance(context); |