Fixed Filter run time error -kushankr

A runtime error occurred due to inability to cast GridLayout to GridView
in Filter.java. This was causing runtime error. Fixed it.