Merge pull request #134 from TwidereProject/data_export_crash

fixed data export/import crash
This commit is contained in:
Mariotaku 2015-04-26 02:18:53 +08:00
commit 46bbd25513
2 changed files with 14 additions and 3 deletions

View File

@ -19,12 +19,17 @@ import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
public class DataExportActivity extends BaseAppCompatActivity implements FileSelectorDialogFragment.Callback,
public class DataExportActivity extends ThemedFragmentActivity implements FileSelectorDialogFragment.Callback,
DataExportImportTypeSelectorDialogFragment.Callback {
private ExportSettingsTask mTask;
@Override
@Override
public int getThemeColor() {
return ThemeUtils.getThemeColor(this);
}
@Override
public int getThemeResourceId() {
return ThemeUtils.getNoDisplayThemeResource(this);
}

View File

@ -5,6 +5,7 @@ import android.os.Bundle;
import android.os.Environment;
import android.support.v4.app.DialogFragment;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import org.mariotaku.twidere.R;
@ -17,12 +18,17 @@ import org.mariotaku.twidere.util.ThemeUtils;
import java.io.File;
import java.io.IOException;
public class DataImportActivity extends BaseAppCompatActivity implements FileSelectorDialogFragment.Callback,
public class DataImportActivity extends ThemedFragmentActivity implements FileSelectorDialogFragment.Callback,
DataExportImportTypeSelectorDialogFragment.Callback {
private ImportSettingsTask mImportSettingsTask;
private OpenImportTypeTask mOpenImportTypeTask;
@Override
public int getThemeColor() {
return ThemeUtils.getThemeColor(this);
}
@Override
public int getThemeResourceId() {
return ThemeUtils.getNoDisplayThemeResource(this);