use of android.annotation.StyleRes in project platform_frameworks_base by android.
the class DatePickerDialog method resolveDialogTheme.
@StyleRes
static int resolveDialogTheme(@NonNull Context context, @StyleRes int themeResId) {
if (themeResId == 0) {
final TypedValue outValue = new TypedValue();
context.getTheme().resolveAttribute(R.attr.datePickerDialogTheme, outValue, true);
return outValue.resourceId;
} else {
return themeResId;
}
}
use of android.annotation.StyleRes in project android_frameworks_base by crdroidandroid.
the class DatePickerDialog method resolveDialogTheme.
@StyleRes
static int resolveDialogTheme(@NonNull Context context, @StyleRes int themeResId) {
if (themeResId == 0) {
final TypedValue outValue = new TypedValue();
context.getTheme().resolveAttribute(R.attr.datePickerDialogTheme, outValue, true);
return outValue.resourceId;
} else {
return themeResId;
}
}
use of android.annotation.StyleRes in project android_frameworks_base by DirtyUnicorns.
the class DatePickerDialog method resolveDialogTheme.
@StyleRes
static int resolveDialogTheme(@NonNull Context context, @StyleRes int themeResId) {
if (themeResId == 0) {
final TypedValue outValue = new TypedValue();
context.getTheme().resolveAttribute(R.attr.datePickerDialogTheme, outValue, true);
return outValue.resourceId;
} else {
return themeResId;
}
}
use of android.annotation.StyleRes in project android_frameworks_base by AOSPA.
the class DatePickerDialog method resolveDialogTheme.
@StyleRes
static int resolveDialogTheme(@NonNull Context context, @StyleRes int themeResId) {
if (themeResId == 0) {
final TypedValue outValue = new TypedValue();
context.getTheme().resolveAttribute(R.attr.datePickerDialogTheme, outValue, true);
return outValue.resourceId;
} else {
return themeResId;
}
}
use of android.annotation.StyleRes in project android_frameworks_base by ResurrectionRemix.
the class DatePickerDialog method resolveDialogTheme.
@StyleRes
static int resolveDialogTheme(@NonNull Context context, @StyleRes int themeResId) {
if (themeResId == 0) {
final TypedValue outValue = new TypedValue();
context.getTheme().resolveAttribute(R.attr.datePickerDialogTheme, outValue, true);
return outValue.resourceId;
} else {
return themeResId;
}
}
Aggregations