Merge pull request #134 from TwidereProject/data_export_crash
fixed data export/import crash
This commit is contained in:
commit
46bbd25513
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue