mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-28 07:31:36 -04:00
Remove unused legacy code
This commit is contained in:
parent
a2e3c64f90
commit
63437a4762
@ -148,8 +148,6 @@ public class KiwixMobileActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
public static final String PREF_STORAGE_TITLE = "pref_selected_title";
|
public static final String PREF_STORAGE_TITLE = "pref_selected_title";
|
||||||
|
|
||||||
public static ArrayList<State> mPrefState;
|
|
||||||
|
|
||||||
public static boolean mIsFullscreenOpened;
|
public static boolean mIsFullscreenOpened;
|
||||||
|
|
||||||
public static TextView headerView;
|
public static TextView headerView;
|
||||||
@ -322,7 +320,6 @@ public class KiwixMobileActivity extends AppCompatActivity {
|
|||||||
stopTTSButton = (Button) findViewById(R.id.button_stop_tts);
|
stopTTSButton = (Button) findViewById(R.id.button_stop_tts);
|
||||||
pauseTTSButton = (Button) findViewById(R.id.button_pause_tts);
|
pauseTTSButton = (Button) findViewById(R.id.button_pause_tts);
|
||||||
TTSControls = (LinearLayout) findViewById(R.id.tts_controls);
|
TTSControls = (LinearLayout) findViewById(R.id.tts_controls);
|
||||||
mPrefState = new ArrayList<>();
|
|
||||||
mToolbarContainer = (RelativeLayout) findViewById(R.id.toolbar_layout);
|
mToolbarContainer = (RelativeLayout) findViewById(R.id.toolbar_layout);
|
||||||
mProgressBar = (AnimatedProgressBar) findViewById(R.id.progress_view);
|
mProgressBar = (AnimatedProgressBar) findViewById(R.id.progress_view);
|
||||||
exitFullscreenButton = (ImageButton) findViewById(R.id.FullscreenControlButton);
|
exitFullscreenButton = (ImageButton) findViewById(R.id.FullscreenControlButton);
|
||||||
@ -1483,10 +1480,6 @@ public class KiwixMobileActivity extends AppCompatActivity {
|
|||||||
mLeftArrayAdapter.notifyDataSetChanged();
|
mLeftArrayAdapter.notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
loadPrefs();
|
loadPrefs();
|
||||||
for (KiwixMobileActivity.State state : KiwixMobileActivity.mPrefState) {
|
|
||||||
state.setHasToBeRefreshed(true);
|
|
||||||
Log.e(TAG_KIWIX, KiwixMobileActivity.mPrefState.get(0).hasToBeRefreshed() + "");
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case BOOKMARK_CHOSEN_REQUEST:
|
case BOOKMARK_CHOSEN_REQUEST:
|
||||||
@ -1817,23 +1810,6 @@ public class KiwixMobileActivity extends AppCompatActivity {
|
|||||||
public int color;
|
public int color;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class State {
|
|
||||||
|
|
||||||
private boolean hasToBeRefreshed;
|
|
||||||
|
|
||||||
private State(boolean hasToBeRefreshed) {
|
|
||||||
this.hasToBeRefreshed = hasToBeRefreshed;
|
|
||||||
}
|
|
||||||
|
|
||||||
private boolean hasToBeRefreshed() {
|
|
||||||
return hasToBeRefreshed;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setHasToBeRefreshed(boolean hasToBeRefreshed) {
|
|
||||||
this.hasToBeRefreshed = hasToBeRefreshed;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private class KiwixWebViewClient extends WebViewClient {
|
private class KiwixWebViewClient extends WebViewClient {
|
||||||
|
|
||||||
private HashMap<String, String> documentTypes = new HashMap<String, String>() {{
|
private HashMap<String, String> documentTypes = new HashMap<String, String>() {{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user