fixed data export/import crash

This commit is contained in:
Mariotaku Lee 2015-04-26 02:17:14 +08:00
parent 05ef4cf640
commit 688e7059d6
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);