comparison android/dw.cpp @ 2836:da90bf6d0564

Andrdoid: Mask out alignment and other flags when returning the container column type.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 12 Sep 2022 20:59:59 +0000
parents 1f0017a07771
children 5018df4f952e
comparison
equal deleted inserted replaced
2835:1f0017a07771 2836:da90bf6d0564
4054 */ 4054 */
4055 int API dw_container_get_column_type(HWND handle, int column) 4055 int API dw_container_get_column_type(HWND handle, int column)
4056 { 4056 {
4057 JNIEnv *env; 4057 JNIEnv *env;
4058 int retval = 0; 4058 int retval = 0;
4059 int mask = (DW_CFA_BITMAPORICON | DW_CFA_STRING | DW_CFA_ULONG | DW_CFA_TIME | DW_CFA_DATE);
4059 4060
4060 if((env = (JNIEnv *)pthread_getspecific(_dw_env_key))) 4061 if((env = (JNIEnv *)pthread_getspecific(_dw_env_key)))
4061 { 4062 {
4062 // First get the class that contains the method you need to call 4063 // First get the class that contains the method you need to call
4063 jclass clazz = _dw_find_class(env, DW_CLASS_NAME); 4064 jclass clazz = _dw_find_class(env, DW_CLASS_NAME);
4067 // Call the method on the object 4068 // Call the method on the object
4068 retval = env->CallIntMethod(_dw_obj, containerGetColumnType, handle, column); 4069 retval = env->CallIntMethod(_dw_obj, containerGetColumnType, handle, column);
4069 if(_dw_jni_check_exception(env)) 4070 if(_dw_jni_check_exception(env))
4070 retval = 0; 4071 retval = 0;
4071 } 4072 }
4072 return retval; 4073 return (retval & mask);
4073 } 4074 }
4074 4075
4075 /* 4076 /*
4076 * Gets column type for a filesystem container column. 4077 * Gets column type for a filesystem container column.
4077 * Parameters: 4078 * Parameters: