mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-16 10:56:50 -04:00
Some other clean up
This commit is contained in:
parent
b5688735f8
commit
c7050f9abb
@ -455,7 +455,7 @@ public class KiwixMobileActivity extends AppCompatActivity {
|
|||||||
setUpTTS();
|
setUpTTS();
|
||||||
htmlUtils = new HTMLUtils(sectionProperties, mSections, mRightDrawerList, this, mHandler);
|
htmlUtils = new HTMLUtils(sectionProperties, mSections, mRightDrawerList, this, mHandler);
|
||||||
|
|
||||||
manageExternalLaunchAndRestoringViewState(savedInstanceState);
|
manageExternalLaunchAndRestoringViewState();
|
||||||
setUpExitFullscreenButton();
|
setUpExitFullscreenButton();
|
||||||
loadPrefs();
|
loadPrefs();
|
||||||
updateTitle(ZimContentProvider.getZimFileTitle());
|
updateTitle(ZimContentProvider.getZimFileTitle());
|
||||||
@ -817,8 +817,6 @@ public class KiwixMobileActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
readAloud();
|
readAloud();
|
||||||
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case R.id.menu_fullscreen:
|
case R.id.menu_fullscreen:
|
||||||
@ -968,9 +966,7 @@ public class KiwixMobileActivity extends AppCompatActivity {
|
|||||||
dialog.show();
|
dialog.show();
|
||||||
finish();
|
finish();
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1193,22 +1189,15 @@ public class KiwixMobileActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean openArticleFromBookmarkTitle(String bookmarkTitle) {
|
public boolean openArticleFromBookmarkTitle(String bookmarkTitle) {
|
||||||
// Log.d(TAG_KIWIX, "openArticleFromBookmark: " + articleSearchtextView.getText());
|
|
||||||
return openArticle(ZimContentProvider.getPageUrlFromTitle(bookmarkTitle));
|
return openArticle(ZimContentProvider.getPageUrlFromTitle(bookmarkTitle));
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean openArticleFromBookmarkURL(String bookmarkURL) {
|
public boolean openArticleFromBookmarkURL(String bookmarkURL) {
|
||||||
// Log.d(TAG_KIWIX, "openArticleFromBookmark: " + articleSearchtextView.getText());
|
|
||||||
return openArticle(bookmarkURL);
|
return openArticle(bookmarkURL);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void contentsDrawerHint() {
|
private void contentsDrawerHint() {
|
||||||
mLeftDrawerLayout.postDelayed(new Runnable() {
|
mLeftDrawerLayout.postDelayed(() -> mLeftDrawerLayout.openDrawer(GravityCompat.END), 500);
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
mLeftDrawerLayout.openDrawer(GravityCompat.END);
|
|
||||||
}
|
|
||||||
}, 500);
|
|
||||||
|
|
||||||
AlertDialog.Builder builder = new AlertDialog.Builder(this);
|
AlertDialog.Builder builder = new AlertDialog.Builder(this);
|
||||||
builder.setMessage(ShortcutUtils.stringsGetter(R.string.hint_contents_drawer_message, this))
|
builder.setMessage(ShortcutUtils.stringsGetter(R.string.hint_contents_drawer_message, this))
|
||||||
@ -1683,7 +1672,7 @@ public class KiwixMobileActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void manageExternalLaunchAndRestoringViewState(Bundle savedInstanceState) {
|
private void manageExternalLaunchAndRestoringViewState() {
|
||||||
|
|
||||||
if (getIntent().getData() != null) {
|
if (getIntent().getData() != null) {
|
||||||
String filePath = FileUtils.getLocalFilePathByUri(getApplicationContext(), getIntent().getData());
|
String filePath = FileUtils.getLocalFilePathByUri(getApplicationContext(), getIntent().getData());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user