2012-01-25 13:10:01 -08:00
|
|
|
/* -*- Mode: Java; tab-width: 20; indent-tabs-mode: nil; -*-
|
2012-05-21 04:12:37 -07: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 13:10:01 -08: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-17 17:54:54 -07:00
|
|
|
public class SetupScreen extends Dialog
|
|
|
|
{
|
2012-01-25 13:10:01 -08: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 10:36:40 -07:00
|
|
|
setTitle(R.string.splash_settingup);
|
2012-01-25 13:10:01 -08:00
|
|
|
|
|
|
|
ImageView spinnerImage = (ImageView)findViewById(R.id.spinner_image);
|
|
|
|
mProgressSpinner = (AnimationDrawable)spinnerImage.getBackground();
|
|
|
|
spinnerImage.setImageDrawable(mProgressSpinner);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onWindowFocusChanged (boolean hasFocus) {
|
|
|
|
mProgressSpinner.start();
|
|
|
|
}
|
|
|
|
}
|