diff --git a/src/java/android-filechooser/code/libs/android-support-v4.jar b/src/java/android-filechooser/code/libs/android-support-v4.jar new file mode 100644 index 00000000..428bdbc0 Binary files /dev/null and b/src/java/android-filechooser/code/libs/android-support-v4.jar differ diff --git a/src/java/android-filechooser/code/project.properties b/src/java/android-filechooser/code/project.properties index cb1dafdb..3c9ea6a1 100644 --- a/src/java/android-filechooser/code/project.properties +++ b/src/java/android-filechooser/code/project.properties @@ -10,4 +10,4 @@ # Project target. target=android-17 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 diff --git a/src/java/android-filechooser/code/src/group/pals/android/lib/ui/filechooser/FileChooserActivity_v7.java b/src/java/android-filechooser/code/src/group/pals/android/lib/ui/filechooser/FileChooserActivity_v7.java deleted file mode 100644 index 33551a9c..00000000 --- a/src/java/android-filechooser/code/src/group/pals/android/lib/ui/filechooser/FileChooserActivity_v7.java +++ /dev/null @@ -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+. - *

- * See {@link FileChooserActivity} for usage. - *

- * - * @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() - -}