2012-01-25 21:10:01 +00:00
|
|
|
/* -*- Mode: Java; tab-width: 20; indent-tabs-mode: nil; -*-
|
2012-05-21 11:12:37 +00:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2012-01-25 21:10:01 +00:00
|
|
|
|
|
|
|
package org.mozilla.gecko;
|
|
|
|
|
|
|
|
import android.app.Dialog;
|
|
|
|
import android.content.Context;
|
|
|
|
import android.graphics.drawable.AnimationDrawable;
|
|
|
|
import android.os.Bundle;
|
|
|
|
import android.widget.ImageView;
|
|
|
|
|
2012-07-18 00:54:54 +00:00
|
|
|
public class SetupScreen extends Dialog
|
|
|
|
{
|
2012-01-25 21:10:01 +00:00
|
|
|
private static final String LOGTAG = "SetupScreen";
|
|
|
|
private AnimationDrawable mProgressSpinner;
|
|
|
|
|
|
|
|
public SetupScreen(Context aContext) {
|
|
|
|
super(aContext, android.R.style.Theme_NoTitleBar_Fullscreen);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onCreate(Bundle savedInstanceState) {
|
|
|
|
super.onCreate(savedInstanceState);
|
|
|
|
setContentView(R.layout.setup_screen);
|
|
|
|
setCancelable(false);
|
|
|
|
|
2012-03-26 17:36:40 +00:00
|
|
|
setTitle(R.string.splash_settingup);
|
2012-01-25 21:10:01 +00:00
|
|
|
|
|
|
|
ImageView spinnerImage = (ImageView)findViewById(R.id.spinner_image);
|
|
|
|
mProgressSpinner = (AnimationDrawable)spinnerImage.getBackground();
|
|
|
|
spinnerImage.setImageDrawable(mProgressSpinner);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onWindowFocusChanged (boolean hasFocus) {
|
|
|
|
mProgressSpinner.start();
|
|
|
|
}
|
|
|
|
}
|