blob: 59f3b3df49199f4e4b70acea4433faec6de2cae3 [file] [log] [blame]
John Spurlockaf8d6c42014-05-07 17:49:08 -04001/*
2 * Copyright (C) 2014 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package com.android.systemui.qs;
18
19import android.animation.Animator;
20import android.animation.Animator.AnimatorListener;
21import android.animation.AnimatorListenerAdapter;
22import android.content.Context;
John Spurlock7f8f22a2014-07-02 18:54:17 -040023import android.content.Intent;
John Spurlock4bf31982014-05-21 13:04:22 -040024import android.content.res.Resources;
John Spurlockaf8d6c42014-05-07 17:49:08 -040025import android.os.Handler;
26import android.os.Message;
27import android.util.AttributeSet;
John Spurlock7f8f22a2014-07-02 18:54:17 -040028import android.view.LayoutInflater;
John Spurlockaf8d6c42014-05-07 17:49:08 -040029import android.view.View;
30import android.view.ViewGroup;
Jorim Jaggi3f48f462014-07-08 16:53:29 +020031import android.widget.ImageView;
John Spurlockaf8d6c42014-05-07 17:49:08 -040032
33import com.android.systemui.R;
John Spurlock7f8f22a2014-07-02 18:54:17 -040034import com.android.systemui.qs.QSTile.DetailAdapter;
Jorim Jaggi3f48f462014-07-08 16:53:29 +020035import com.android.systemui.settings.BrightnessController;
36import com.android.systemui.settings.ToggleSlider;
Adrian Roos1ef80fe2014-07-14 22:53:54 +020037import com.android.systemui.statusbar.phone.QSTileHost;
John Spurlockaf8d6c42014-05-07 17:49:08 -040038
39import java.util.ArrayList;
40
41/** View that represents the quick settings tile panel. **/
42public class QSPanel extends ViewGroup {
John Spurlock4bf31982014-05-21 13:04:22 -040043 private static final float TILE_ASPECT = 1.2f;
John Spurlockaf8d6c42014-05-07 17:49:08 -040044
45 private final Context mContext;
46 private final ArrayList<TileRecord> mRecords = new ArrayList<TileRecord>();
John Spurlock7f8f22a2014-07-02 18:54:17 -040047 private final View mDetail;
48 private final ViewGroup mDetailContent;
49 private final View mDetailSettingsButton;
50 private final View mDetailDoneButton;
Jorim Jaggi3f48f462014-07-08 16:53:29 +020051 private final View mBrightnessView;
John Spurlock8af525d2014-08-02 10:56:05 -040052 private final QSDetailClipper mClipper;
John Spurlockaf8d6c42014-05-07 17:49:08 -040053 private final H mHandler = new H();
54
55 private int mColumns;
56 private int mCellWidth;
57 private int mCellHeight;
58 private int mLargeCellWidth;
59 private int mLargeCellHeight;
John Spurlock92d9b192014-06-29 12:54:24 -040060 private int mPanelPaddingBottom;
John Spurlock39076ed2014-06-30 20:47:20 -040061 private int mDualTileUnderlap;
John Spurlock5729d092014-05-29 17:42:51 -040062 private boolean mExpanded;
Jorim Jaggie65e3102014-07-01 22:00:50 +020063 private boolean mListening;
John Spurlockaf8d6c42014-05-07 17:49:08 -040064
Adrian Roos1ef80fe2014-07-14 22:53:54 +020065 private Record mDetailRecord;
John Spurlock5729d092014-05-29 17:42:51 -040066 private Callback mCallback;
Jorim Jaggi3f48f462014-07-08 16:53:29 +020067 private BrightnessController mBrightnessController;
Adrian Roos1ef80fe2014-07-14 22:53:54 +020068 private QSTileHost mHost;
John Spurlockaf8d6c42014-05-07 17:49:08 -040069
Jason Monk3d5f5512014-07-25 11:17:28 -040070 private QSFooter mFooter;
71
John Spurlockaf8d6c42014-05-07 17:49:08 -040072 public QSPanel(Context context) {
73 this(context, null);
74 }
75
76 public QSPanel(Context context, AttributeSet attrs) {
77 super(context, attrs);
78 mContext = context;
79
John Spurlock7f8f22a2014-07-02 18:54:17 -040080 mDetail = LayoutInflater.from(context).inflate(R.layout.qs_detail, this, false);
81 mDetailContent = (ViewGroup) mDetail.findViewById(android.R.id.content);
82 mDetailSettingsButton = mDetail.findViewById(android.R.id.button2);
83 mDetailDoneButton = mDetail.findViewById(android.R.id.button1);
John Spurlockaf8d6c42014-05-07 17:49:08 -040084 mDetail.setVisibility(GONE);
85 mDetail.setClickable(true);
Jorim Jaggi3f48f462014-07-08 16:53:29 +020086 mBrightnessView = LayoutInflater.from(context).inflate(
87 R.layout.quick_settings_brightness_dialog, this, false);
Jason Monk3d5f5512014-07-25 11:17:28 -040088 mFooter = new QSFooter(this, context);
John Spurlockaf8d6c42014-05-07 17:49:08 -040089 addView(mDetail);
Jorim Jaggi3f48f462014-07-08 16:53:29 +020090 addView(mBrightnessView);
Jason Monk3d5f5512014-07-25 11:17:28 -040091 addView(mFooter.getView());
John Spurlock8af525d2014-08-02 10:56:05 -040092 mClipper = new QSDetailClipper(mDetail);
John Spurlockaf8d6c42014-05-07 17:49:08 -040093 updateResources();
Jorim Jaggi3f48f462014-07-08 16:53:29 +020094
95 mBrightnessController = new BrightnessController(getContext(),
96 (ImageView) findViewById(R.id.brightness_icon),
97 (ToggleSlider) findViewById(R.id.brightness_slider));
Adrian Roos1ef80fe2014-07-14 22:53:54 +020098
99 mDetailDoneButton.setOnClickListener(new OnClickListener() {
100 @Override
101 public void onClick(View v) {
John Spurlockf7ae4422014-08-01 12:45:18 -0400102 closeDetail();
Adrian Roos1ef80fe2014-07-14 22:53:54 +0200103 }
104 });
John Spurlockaf8d6c42014-05-07 17:49:08 -0400105 }
106
John Spurlock5729d092014-05-29 17:42:51 -0400107 public void setCallback(Callback callback) {
108 mCallback = callback;
109 }
110
Adrian Roos1ef80fe2014-07-14 22:53:54 +0200111 public void setHost(QSTileHost host) {
112 mHost = host;
Jason Monk3d5f5512014-07-25 11:17:28 -0400113 mFooter.setHost(host);
Adrian Roos1ef80fe2014-07-14 22:53:54 +0200114 }
115
Adrian Roos00a0b1f2014-07-16 16:44:49 +0200116 public QSTileHost getHost() {
117 return mHost;
118 }
Adrian Roos1ef80fe2014-07-14 22:53:54 +0200119
John Spurlockaf8d6c42014-05-07 17:49:08 -0400120 public void updateResources() {
John Spurlock4bf31982014-05-21 13:04:22 -0400121 final Resources res = mContext.getResources();
122 final int columns = Math.max(1, res.getInteger(R.integer.quick_settings_num_columns));
123 mCellHeight = res.getDimensionPixelSize(R.dimen.qs_tile_height);
124 mCellWidth = (int)(mCellHeight * TILE_ASPECT);
125 mLargeCellHeight = res.getDimensionPixelSize(R.dimen.qs_dual_tile_height);
126 mLargeCellWidth = (int)(mLargeCellHeight * TILE_ASPECT);
John Spurlock92d9b192014-06-29 12:54:24 -0400127 mPanelPaddingBottom = res.getDimensionPixelSize(R.dimen.qs_panel_padding_bottom);
John Spurlock39076ed2014-06-30 20:47:20 -0400128 mDualTileUnderlap = res.getDimensionPixelSize(R.dimen.qs_dual_tile_padding_vertical);
John Spurlockaf8d6c42014-05-07 17:49:08 -0400129 if (mColumns != columns) {
130 mColumns = columns;
131 postInvalidate();
132 }
John Spurlock1a462c12014-07-14 10:52:01 -0400133 if (mListening) {
134 refreshAllTiles();
135 }
John Spurlockaf8d6c42014-05-07 17:49:08 -0400136 }
137
138 public void setExpanded(boolean expanded) {
John Spurlock5729d092014-05-29 17:42:51 -0400139 if (mExpanded == expanded) return;
140 mExpanded = expanded;
141 if (!mExpanded) {
John Spurlockf7ae4422014-08-01 12:45:18 -0400142 closeDetail();
John Spurlockaf8d6c42014-05-07 17:49:08 -0400143 }
Jorim Jaggie65e3102014-07-01 22:00:50 +0200144 }
145
146 public void setListening(boolean listening) {
147 if (mListening == listening) return;
148 mListening = listening;
John Spurlockaf8d6c42014-05-07 17:49:08 -0400149 for (TileRecord r : mRecords) {
Jorim Jaggie65e3102014-07-01 22:00:50 +0200150 r.tile.setListening(mListening);
John Spurlock1a462c12014-07-14 10:52:01 -0400151 }
Jason Monk3d5f5512014-07-25 11:17:28 -0400152 mFooter.setListening(mListening);
John Spurlock1a462c12014-07-14 10:52:01 -0400153 if (mListening) {
154 refreshAllTiles();
John Spurlockaf8d6c42014-05-07 17:49:08 -0400155 }
Jorim Jaggi3f48f462014-07-08 16:53:29 +0200156 if (listening) {
157 mBrightnessController.registerCallbacks();
158 } else {
159 mBrightnessController.unregisterCallbacks();
160 }
John Spurlockaf8d6c42014-05-07 17:49:08 -0400161 }
162
John Spurlock1a462c12014-07-14 10:52:01 -0400163 private void refreshAllTiles() {
164 for (TileRecord r : mRecords) {
165 r.tile.refreshState();
166 }
Jason Monk3d5f5512014-07-25 11:17:28 -0400167 mFooter.refreshState();
John Spurlock1a462c12014-07-14 10:52:01 -0400168 }
169
Adrian Roos1ef80fe2014-07-14 22:53:54 +0200170 public void showDetailAdapter(boolean show, DetailAdapter adapter) {
171 Record r = new Record();
172 r.detailAdapter = adapter;
173 showDetail(show, r);
174 }
175
176 private void showDetail(boolean show, Record r) {
John Spurlockaf8d6c42014-05-07 17:49:08 -0400177 mHandler.obtainMessage(H.SHOW_DETAIL, show ? 1 : 0, 0, r).sendToTarget();
178 }
179
180 private void setTileVisibility(View v, boolean visible) {
181 mHandler.obtainMessage(H.SET_TILE_VISIBILITY, visible ? 1 : 0, 0, v).sendToTarget();
182 }
183
184 private void handleSetTileVisibility(View v, boolean visible) {
John Spurlock360e15b2014-07-08 18:45:21 -0400185 if (visible == (v.getVisibility() == VISIBLE)) return;
John Spurlockaf8d6c42014-05-07 17:49:08 -0400186 v.setVisibility(visible ? VISIBLE : GONE);
187 }
188
189 public void addTile(final QSTile<?> tile) {
190 final TileRecord r = new TileRecord();
191 r.tile = tile;
192 r.tileView = tile.createTileView(mContext);
193 r.tileView.setVisibility(View.GONE);
194 r.tile.setCallback(new QSTile.Callback() {
195 @Override
196 public void onStateChanged(QSTile.State state) {
197 setTileVisibility(r.tileView, state.visible);
198 r.tileView.onStateChanged(state);
199 }
200 @Override
201 public void onShowDetail(boolean show) {
202 QSPanel.this.showDetail(show, r);
203 }
John Spurlock7f8f22a2014-07-02 18:54:17 -0400204 @Override
205 public void onToggleStateChanged(boolean state) {
206 if (mDetailRecord == r) {
207 fireToggleStateChanged(state);
208 }
209 }
John Spurlock486b78e2014-07-07 08:37:56 -0400210 @Override
211 public void onScanStateChanged(boolean state) {
212 if (mDetailRecord == r) {
213 fireScanStateChanged(state);
214 }
215 }
John Spurlockaf8d6c42014-05-07 17:49:08 -0400216 });
217 final View.OnClickListener click = new View.OnClickListener() {
218 @Override
219 public void onClick(View v) {
220 r.tile.click();
221 }
222 };
223 final View.OnClickListener clickSecondary = new View.OnClickListener() {
224 @Override
225 public void onClick(View v) {
226 r.tile.secondaryClick();
227 }
228 };
229 r.tileView.init(click, clickSecondary);
John Spurlockccb6b9a2014-05-17 15:54:40 -0400230 r.tile.refreshState();
John Spurlockaf8d6c42014-05-07 17:49:08 -0400231 mRecords.add(r);
232
233 addView(r.tileView);
234 }
235
John Spurlockf7ae4422014-08-01 12:45:18 -0400236 public boolean isShowingDetail() {
237 return mDetailRecord != null;
238 }
239
240 public void closeDetail() {
241 showDetail(false, mDetailRecord);
242 }
243
Adrian Roos1ef80fe2014-07-14 22:53:54 +0200244 private void handleShowDetail(Record r, boolean show) {
245 if (r instanceof TileRecord) {
246 handleShowDetailTile((TileRecord) r, show);
247 } else {
248 handleShowDetailImpl(r, show, getWidth() /* x */, 0/* y */);
249 }
250 }
251
252 private void handleShowDetailTile(TileRecord r, boolean show) {
253 if ((mDetailRecord != null) == show) return;
254
John Spurlockaf8d6c42014-05-07 17:49:08 -0400255 if (show) {
John Spurlock7f8f22a2014-07-02 18:54:17 -0400256 r.detailAdapter = r.tile.getDetailAdapter();
257 if (r.detailAdapter == null) return;
Adrian Roos1ef80fe2014-07-14 22:53:54 +0200258 }
259 int x = r.tileView.getLeft() + r.tileView.getWidth() / 2;
260 int y = r.tileView.getTop() + r.tileView.getHeight() / 2;
261 handleShowDetailImpl(r, show, x, y);
262 }
263
264 private void handleShowDetailImpl(Record r, boolean show, int x, int y) {
265 if ((mDetailRecord != null) == show) return; // already in right state
266 DetailAdapter detailAdapter = null;
267 AnimatorListener listener = null;
268 if (show) {
269 detailAdapter = r.detailAdapter;
270 r.detailView = detailAdapter.createDetailView(mContext, r.detailView, mDetailContent);
John Spurlock7f8f22a2014-07-02 18:54:17 -0400271 if (r.detailView == null) throw new IllegalStateException("Must return detail view");
Adrian Roos1ef80fe2014-07-14 22:53:54 +0200272
273 final Intent settingsIntent = detailAdapter.getSettingsIntent();
John Spurlock7f8f22a2014-07-02 18:54:17 -0400274 mDetailSettingsButton.setVisibility(settingsIntent != null ? VISIBLE : GONE);
275 mDetailSettingsButton.setOnClickListener(new OnClickListener() {
276 @Override
277 public void onClick(View v) {
Adrian Roos1ef80fe2014-07-14 22:53:54 +0200278 mHost.startSettingsActivity(settingsIntent);
John Spurlock7f8f22a2014-07-02 18:54:17 -0400279 }
280 });
Adrian Roos1ef80fe2014-07-14 22:53:54 +0200281
John Spurlock7f8f22a2014-07-02 18:54:17 -0400282 mDetailContent.removeAllViews();
John Spurlockaf8d6c42014-05-07 17:49:08 -0400283 mDetail.bringToFront();
John Spurlock7f8f22a2014-07-02 18:54:17 -0400284 mDetailContent.addView(r.detailView);
Adrian Roos1ef80fe2014-07-14 22:53:54 +0200285 mDetailRecord = r;
John Spurlockaf8d6c42014-05-07 17:49:08 -0400286 } else {
John Spurlockaf8d6c42014-05-07 17:49:08 -0400287 listener = mTeardownDetailWhenDone;
288 }
Adrian Roos1ef80fe2014-07-14 22:53:54 +0200289 fireShowingDetail(show ? detailAdapter : null);
John Spurlockaf8d6c42014-05-07 17:49:08 -0400290 mClipper.animateCircularClip(x, y, show, listener);
291 }
292
293 @Override
294 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
295 final int width = MeasureSpec.getSize(widthMeasureSpec);
Jorim Jaggi3f48f462014-07-08 16:53:29 +0200296 mBrightnessView.measure(exactly(width), MeasureSpec.UNSPECIFIED);
Jason Monk3d5f5512014-07-25 11:17:28 -0400297 mFooter.getView().measure(exactly(width), MeasureSpec.UNSPECIFIED);
John Spurlockccb6b9a2014-05-17 15:54:40 -0400298 int r = -1;
299 int c = -1;
John Spurlockaf8d6c42014-05-07 17:49:08 -0400300 int rows = 0;
John Spurlockccb6b9a2014-05-17 15:54:40 -0400301 boolean rowIsDual = false;
John Spurlockaf8d6c42014-05-07 17:49:08 -0400302 for (TileRecord record : mRecords) {
303 if (record.tileView.getVisibility() == GONE) continue;
John Spurlockccb6b9a2014-05-17 15:54:40 -0400304 // wrap to next column if we've reached the max # of columns
305 // also don't allow dual + single tiles on the same row
306 if (r == -1 || c == (mColumns - 1) || rowIsDual != record.tile.supportsDualTargets()) {
307 r++;
308 c = 0;
309 rowIsDual = record.tile.supportsDualTargets();
310 } else {
311 c++;
312 }
John Spurlockaf8d6c42014-05-07 17:49:08 -0400313 record.row = r;
314 record.col = c;
315 rows = r + 1;
John Spurlockaf8d6c42014-05-07 17:49:08 -0400316 }
317
318 for (TileRecord record : mRecords) {
319 if (record.tileView.getVisibility() == GONE) continue;
John Spurlockccb6b9a2014-05-17 15:54:40 -0400320 record.tileView.setDual(record.tile.supportsDualTargets());
John Spurlockaf8d6c42014-05-07 17:49:08 -0400321 final int cw = record.row == 0 ? mLargeCellWidth : mCellWidth;
322 final int ch = record.row == 0 ? mLargeCellHeight : mCellHeight;
323 record.tileView.measure(exactly(cw), exactly(ch));
324 }
Jorim Jaggi3f48f462014-07-08 16:53:29 +0200325 int h = rows == 0 ? mBrightnessView.getHeight() : (getRowTop(rows) + mPanelPaddingBottom);
Jason Monk3d5f5512014-07-25 11:17:28 -0400326 if (mFooter.hasFooter()) {
327 h += mFooter.getView().getHeight();
328 }
John Spurlock7f8f22a2014-07-02 18:54:17 -0400329 mDetail.measure(exactly(width), exactly(h));
John Spurlock2684d5e2014-05-28 20:27:44 -0400330 setMeasuredDimension(width, h);
John Spurlockaf8d6c42014-05-07 17:49:08 -0400331 }
332
333 private static int exactly(int size) {
334 return MeasureSpec.makeMeasureSpec(size, MeasureSpec.EXACTLY);
335 }
336
337 @Override
338 protected void onLayout(boolean changed, int l, int t, int r, int b) {
John Spurlock4bf31982014-05-21 13:04:22 -0400339 final int w = getWidth();
Jorim Jaggi3f48f462014-07-08 16:53:29 +0200340 mBrightnessView.layout(0, 0,
341 mBrightnessView.getMeasuredWidth(), mBrightnessView.getMeasuredHeight());
John Spurlockaf8d6c42014-05-07 17:49:08 -0400342 for (TileRecord record : mRecords) {
343 if (record.tileView.getVisibility() == GONE) continue;
344 final int cols = getColumnCount(record.row);
345 final int cw = record.row == 0 ? mLargeCellWidth : mCellWidth;
346 final int extra = (w - cw * cols) / (cols + 1);
347 final int left = record.col * cw + (record.col + 1) * extra;
348 final int top = getRowTop(record.row);
349 record.tileView.layout(left, top,
350 left + record.tileView.getMeasuredWidth(),
351 top + record.tileView.getMeasuredHeight());
352 }
John Spurlock3e04cc82014-05-30 12:34:03 -0400353 final int dh = Math.max(mDetail.getMeasuredHeight(), getMeasuredHeight());
354 mDetail.layout(0, 0, mDetail.getMeasuredWidth(), dh);
Jason Monk3d5f5512014-07-25 11:17:28 -0400355 if (mFooter.hasFooter()) {
356 View footer = mFooter.getView();
357 footer.layout(0, getMeasuredHeight() - footer.getMeasuredHeight(),
358 footer.getMeasuredWidth(), getMeasuredHeight());
359 }
John Spurlockaf8d6c42014-05-07 17:49:08 -0400360 }
361
362 private int getRowTop(int row) {
Jorim Jaggi3f48f462014-07-08 16:53:29 +0200363 if (row <= 0) return mBrightnessView.getHeight();
364 return mBrightnessView.getHeight()
365 + mLargeCellHeight - mDualTileUnderlap + (row - 1) * mCellHeight;
John Spurlockaf8d6c42014-05-07 17:49:08 -0400366 }
367
368 private int getColumnCount(int row) {
369 int cols = 0;
370 for (TileRecord record : mRecords) {
371 if (record.tileView.getVisibility() == GONE) continue;
372 if (record.row == row) cols++;
373 }
374 return cols;
375 }
376
John Spurlock7f8f22a2014-07-02 18:54:17 -0400377 private void fireShowingDetail(QSTile.DetailAdapter detail) {
John Spurlock5729d092014-05-29 17:42:51 -0400378 if (mCallback != null) {
John Spurlock7f8f22a2014-07-02 18:54:17 -0400379 mCallback.onShowingDetail(detail);
380 }
381 }
382
383 private void fireToggleStateChanged(boolean state) {
384 if (mCallback != null) {
385 mCallback.onToggleStateChanged(state);
John Spurlock5729d092014-05-29 17:42:51 -0400386 }
387 }
388
John Spurlock486b78e2014-07-07 08:37:56 -0400389 private void fireScanStateChanged(boolean state) {
390 if (mCallback != null) {
391 mCallback.onScanStateChanged(state);
392 }
393 }
394
John Spurlockaf8d6c42014-05-07 17:49:08 -0400395 private class H extends Handler {
396 private static final int SHOW_DETAIL = 1;
397 private static final int SET_TILE_VISIBILITY = 2;
398 @Override
399 public void handleMessage(Message msg) {
400 if (msg.what == SHOW_DETAIL) {
Adrian Roos1ef80fe2014-07-14 22:53:54 +0200401 handleShowDetail((Record)msg.obj, msg.arg1 != 0);
John Spurlockaf8d6c42014-05-07 17:49:08 -0400402 } else if (msg.what == SET_TILE_VISIBILITY) {
403 handleSetTileVisibility((View)msg.obj, msg.arg1 != 0);
404 }
405 }
406 }
407
Adrian Roos1ef80fe2014-07-14 22:53:54 +0200408 private static class Record {
John Spurlock856edeb2014-06-01 20:36:47 -0400409 View detailView;
John Spurlock7f8f22a2014-07-02 18:54:17 -0400410 DetailAdapter detailAdapter;
Adrian Roos1ef80fe2014-07-14 22:53:54 +0200411 }
412
413 private static final class TileRecord extends Record {
414 QSTile<?> tile;
415 QSTileView tileView;
John Spurlockaf8d6c42014-05-07 17:49:08 -0400416 int row;
417 int col;
418 }
419
420 private final AnimatorListenerAdapter mTeardownDetailWhenDone = new AnimatorListenerAdapter() {
421 public void onAnimationEnd(Animator animation) {
John Spurlock7f8f22a2014-07-02 18:54:17 -0400422 mDetailContent.removeAllViews();
John Spurlockaf8d6c42014-05-07 17:49:08 -0400423 mDetailRecord = null;
424 };
425 };
John Spurlock5729d092014-05-29 17:42:51 -0400426
427 public interface Callback {
John Spurlock7f8f22a2014-07-02 18:54:17 -0400428 void onShowingDetail(QSTile.DetailAdapter detail);
429 void onToggleStateChanged(boolean state);
John Spurlock486b78e2014-07-07 08:37:56 -0400430 void onScanStateChanged(boolean state);
John Spurlock5729d092014-05-29 17:42:51 -0400431 }
John Spurlockaf8d6c42014-05-07 17:49:08 -0400432}