// Path: src/com/zhongyun/viewer/utils/AppUtils.java
// public class AppUtils {
// 	
// 	public static String getAppVersionName(Context context){
// 		PackageManager manager = context.getPackageManager();
// 		PackageInfo info;
// 		try {
// 			info = manager.getPackageInfo(context.getPackageName(), 0);
// 			return info.versionName;
// 		} catch (NameNotFoundException e) {
// 			e.printStackTrace();
// 			return "1.0";
// 		}
// 	}
// 	
// 	@SuppressLint("NewApi")
// 	public static void setStatusBarTransparent(Activity context, int tintColor){
// 		// create our manager instance after the content view is set
// 	    SystemBarTintManager tintManager = new SystemBarTintManager(context);
// 	    // enable status bar tint
// 	    tintManager.setStatusBarTintEnabled(true);
// 	    // enable navigation bar tint
// 	    tintManager.setNavigationBarTintEnabled(true);
// 
// 	    if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
// 	    	context.getWindow().setStatusBarColor(tintColor);
// 	    }else{
// 		    tintManager.setTintColor(tintColor);
// 	    }
// 	}
// }


import com.zhongyun.viewer.utils.AppUtils;
import android.app.Activity;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.view.Window;
/*
 * Copyright (C) 2015 iChano incorporation's Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.zhongyun.viewer;



public class BaseActivity extends Activity{

	protected ProgressDialog dialog = null;
	private boolean isActivityVisible = false;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
// Path: src/com/zhongyun/viewer/utils/AppUtils.java
// public class AppUtils {
// 	
// 	public static String getAppVersionName(Context context){
// 		PackageManager manager = context.getPackageManager();
// 		PackageInfo info;
// 		try {
// 			info = manager.getPackageInfo(context.getPackageName(), 0);
// 			return info.versionName;
// 		} catch (NameNotFoundException e) {
// 			e.printStackTrace();
// 			return "1.0";
// 		}
// 	}
// 	
// 	@SuppressLint("NewApi")
// 	public static void setStatusBarTransparent(Activity context, int tintColor){
// 		// create our manager instance after the content view is set
// 	    SystemBarTintManager tintManager = new SystemBarTintManager(context);
// 	    // enable status bar tint
// 	    tintManager.setStatusBarTintEnabled(true);
// 	    // enable navigation bar tint
// 	    tintManager.setNavigationBarTintEnabled(true);
// 
// 	    if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
// 	    	context.getWindow().setStatusBarColor(tintColor);
// 	    }else{
// 		    tintManager.setTintColor(tintColor);
// 	    }
// 	}
// }


// Path: src/com/zhongyun/viewer/BaseActivity.java
import com.zhongyun.viewer.utils.AppUtils;
import android.app.Activity;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.view.Window;

/*
 * Copyright (C) 2015 iChano incorporation's Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.zhongyun.viewer;



public class BaseActivity extends Activity{

	protected ProgressDialog dialog = null;
	private boolean isActivityVisible = false;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		AppUtils.setStatusBarTransparent(this, getResources().getColor(R.color.title_red));