Removed appcompat v7 dependency, changed version of v4 support lib

This commit is contained in:
Philipp Crocoll 2013-09-25 21:03:18 +02:00
parent 96a30e4588
commit 848f99562c
3 changed files with 1 additions and 91 deletions

View File

@ -10,4 +10,4 @@
# Project target. # Project target.
target=android-17 target=android-17
android.library=true android.library=true
android.library.reference.1=../../../../../AppData/Local/Android/android-sdk/extras/android/support/v7/appcompat android.library.reference.1=../../workspace/android-support-v7-appcompat-res

View File

@ -1,90 +0,0 @@
/*
* Copyright (c) 2012 Hai Bison
*
* See the file LICENSE at the root directory of this project for copying
* permission.
*/
package group.pals.android.lib.ui.filechooser;
import group.pals.android.lib.ui.filechooser.utils.ui.Dlg;
import group.pals.android.lib.ui.filechooser.utils.ui.Ui;
import android.content.res.Configuration;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.util.Log;
/**
* Helper class for {@link FileChooserActivity} in API 7+.
* <p>
* See {@link FileChooserActivity} for usage.
* </p>
*
* @author Hai Bison
* @since v5.4 beta
*/
public class FileChooserActivity_v7 extends ActionBarActivity {
/**
* The full name of this class. Generally used for debugging.
*/
private static final String CLASSNAME = FileChooserActivity_v7.class
.getName();
/*
* CONTROLS
*/
FragmentFiles mFragmentFiles;
/**
* Called when the activity is first created.
*/
@Override
public void onCreate(Bundle savedInstanceState) {
/*
* EXTRA_THEME
*/
if (getIntent().hasExtra(FileChooserActivity.EXTRA_THEME))
setTheme(getIntent().getIntExtra(FileChooserActivity.EXTRA_THEME,
R.style.Afc_Theme_Dark));
super.onCreate(savedInstanceState);
setContentView(R.layout.afc_activity_filechooser);
Ui.adjustDialogSizeForLargeScreen(getWindow());
/*
* Make sure RESULT_CANCELED is default.
*/
setResult(RESULT_CANCELED);
mFragmentFiles = FragmentFiles.newInstance(getIntent());
getSupportFragmentManager().beginTransaction()
.add(R.id.afc_fragment_files, mFragmentFiles).commit();
}// onCreate()
@Override
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
Ui.adjustDialogSizeForLargeScreen(getWindow());
}// onConfigurationChanged()
@Override
public void onBackPressed() {
if (BuildConfig.DEBUG)
Log.d(CLASSNAME, "onBackPressed()");
if (mFragmentFiles.isLoading()) {
if (BuildConfig.DEBUG)
Log.d(CLASSNAME,
"onBackPressed() >> cancelling previous query...");
mFragmentFiles.cancelPreviousLoader();
Dlg.toast(this, R.string.afc_msg_cancelled, Dlg.LENGTH_SHORT);
return;
}
super.onBackPressed();
}// onBackPressed()
}