mirror of
https://github.com/moparisthebest/keepass2android
synced 2024-11-22 09:12:17 -05:00
Removed appcompat v7 dependency, changed version of v4 support lib
This commit is contained in:
parent
96a30e4588
commit
848f99562c
BIN
src/java/android-filechooser/code/libs/android-support-v4.jar
Normal file
BIN
src/java/android-filechooser/code/libs/android-support-v4.jar
Normal file
Binary file not shown.
@ -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
|
||||||
|
@ -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()
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user