| 1 | /* This file is part of Aard Dictionary for Android <http://aarddict.org>. |
| 2 | * |
| 3 | * This program is free software: you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 3 |
| 5 | * as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License <http://www.gnu.org/licenses/gpl-3.0.txt> |
| 11 | * for more details. |
| 12 | * |
| 13 | * Copyright (C) 2010 Igor Tkach |
| 14 | */ |
| 15 | |
| 16 | package aarddict.android; |
| 17 | |
| 18 | import android.app.ProgressDialog; |
| 19 | import android.content.Context; |
| 20 | |
| 21 | final class OpeningProgressDialog extends ProgressDialog { |
| 22 | OpeningProgressDialog(Context context) { |
| 23 | super(context); |
| 24 | setCancelable(false); |
| 25 | setIndeterminate(false); |
| 26 | setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); |
| 27 | setProgress(0); |
| 28 | setMessage(context.getString(R.string.msgLoading)); |
| 29 | } |
| 30 | } |