Skip to content

Commit

Permalink
fix the error
Browse files Browse the repository at this point in the history
  • Loading branch information
longluo committed Jul 8, 2022
1 parent b2ae81a commit 61d35bb
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 393 deletions.
6 changes: 0 additions & 6 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,6 @@

</activity>

<activity
android:name=".ui.activity.MainActivity"
android:launchMode="singleTask"
android:screenOrientation="portrait"
android:theme="@style/AppTheme.NoActionBar" />

<!-- 首页 -->
<activity
android:name=".ui.activity.HomeActivity"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@


public class BookMarkActivity extends BaseActivity {
private static final String LOG_TAG = MainActivity.class.getSimpleName();
private static final String LOG_TAG = BookMarkActivity.class.getSimpleName();

@BindView(R.id.toolbar)
Toolbar toolBar;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
package com.longluo.ebookreader.ui.activity;

import android.Manifest;
import android.content.pm.PackageManager;
import android.os.AsyncTask;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.CompoundButton;
import android.widget.ListView;
import android.widget.Toast;

import androidx.annotation.NonNull;
import androidx.appcompat.widget.Toolbar;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.longluo.ebookreader.R;
import com.longluo.ebookreader.ui.adapter.FileAdapter;
import com.longluo.ebookreader.base.BaseActivity;
import com.longluo.ebookreader.db.BookMeta;
import com.longluo.ebookreader.ui.adapter.FileAdapter;
import com.longluo.ebookreader.util.FileUtils;

import org.litepal.LitePal;
Expand Down Expand Up @@ -252,6 +248,9 @@ protected Boolean doInBackground(Void... params) {
listFile.addAll(FileUtils.getSuffixFile(root.getAbsolutePath(), ".epub"));
listFile.addAll(FileUtils.getSuffixFile(root.getAbsolutePath(), ".azw3"));
listFile.addAll(FileUtils.getSuffixFile(root.getAbsolutePath(), ".mobi"));
listFile.addAll(FileUtils.getSuffixFile(root.getAbsolutePath(), ".pdf"));
listFile.addAll(FileUtils.getSuffixFile(root.getAbsolutePath(), ".doc"));
listFile.addAll(FileUtils.getSuffixFile(root.getAbsolutePath(), ".docx"));

if (listFile == null || listFile.isEmpty()) {
return false;
Expand Down
Loading

0 comments on commit 61d35bb

Please sign in to comment.