Skip to content

Commit 261ed5e

Browse files
committed
remove the option to show the full path
1 parent b425ab9 commit 261ed5e

File tree

11 files changed

+1
-71
lines changed

11 files changed

+1
-71
lines changed

app/src/main/java/com/simplemobiletools/filemanager/Config.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,4 @@ public boolean getShowHidden() {
3737
public void setShowHidden(boolean show) {
3838
mPrefs.edit().putBoolean(Constants.SHOW_HIDDEN, show).apply();
3939
}
40-
41-
public boolean getShowFullPath() {
42-
return mPrefs.getBoolean(Constants.SHOW_FULL_PATH, false);
43-
}
44-
45-
public void setShowFullPath(boolean show) {
46-
mPrefs.edit().putBoolean(Constants.SHOW_FULL_PATH, show).apply();
47-
}
4840
}

app/src/main/java/com/simplemobiletools/filemanager/Constants.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@ public class Constants {
88
public static final String IS_FIRST_RUN = "is_first_run";
99
public static final String IS_DARK_THEME = "is_dark_theme";
1010
public static final String SHOW_HIDDEN = "show_hidden";
11-
public static final String SHOW_FULL_PATH = "show_full_path";
1211
}

app/src/main/java/com/simplemobiletools/filemanager/activities/SettingsActivity.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
public class SettingsActivity extends SimpleActivity {
1515
@BindView(R.id.settings_dark_theme) SwitchCompat mDarkThemeSwitch;
1616
@BindView(R.id.settings_show_hidden) SwitchCompat mShowHiddenSwitch;
17-
@BindView(R.id.settings_show_full_path) SwitchCompat mShowFullPathSwitch;
1817

1918
@Override
2019
protected void onCreate(Bundle savedInstanceState) {
@@ -25,7 +24,6 @@ protected void onCreate(Bundle savedInstanceState) {
2524

2625
setupDarkTheme();
2726
setupShowHidden();
28-
setupShowFullPath();
2927
}
3028

3129
private void setupDarkTheme() {
@@ -36,10 +34,6 @@ private void setupShowHidden() {
3634
mShowHiddenSwitch.setChecked(mConfig.getShowHidden());
3735
}
3836

39-
private void setupShowFullPath() {
40-
mShowFullPathSwitch.setChecked(mConfig.getShowFullPath());
41-
}
42-
4337
@OnClick(R.id.settings_dark_theme_holder)
4438
public void handleDarkTheme() {
4539
mDarkThemeSwitch.setChecked(!mDarkThemeSwitch.isChecked());
@@ -53,12 +47,6 @@ public void handleShowHidden() {
5347
mConfig.setShowHidden(mShowHiddenSwitch.isChecked());
5448
}
5549

56-
@OnClick(R.id.settings_show_full_path_holder)
57-
public void handleShowFullPath() {
58-
mShowFullPathSwitch.setChecked(!mShowFullPathSwitch.isChecked());
59-
mConfig.setShowFullPath(mShowFullPathSwitch.isChecked());
60-
}
61-
6250
private void restartActivity() {
6351
TaskStackBuilder.create(getApplicationContext()).addNextIntentWithParentStack(getIntent()).startActivities();
6452
}

app/src/main/kotlin/com/simplemobiletools/filemanager/activities/MainActivity.kt

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,6 @@ class MainActivity : SimpleActivity(), ItemsFragment.ItemInteractionListener, Br
2828
tryInitFileManager()
2929
}
3030

31-
override fun onResume() {
32-
super.onResume()
33-
if (Utils.hasStoragePermission(applicationContext)) {
34-
val showFullPath = mConfig!!.showFullPath
35-
if (showFullPath != mShowFullPath)
36-
initRootFileManager()
37-
38-
mShowFullPath = showFullPath
39-
}
40-
}
41-
42-
override fun onPause() {
43-
super.onPause()
44-
mShowFullPath = mConfig!!.showFullPath
45-
}
46-
4731
override fun onDestroy() {
4832
super.onDestroy()
4933
mConfig.isFirstRun = false
@@ -142,7 +126,6 @@ class MainActivity : SimpleActivity(), ItemsFragment.ItemInteractionListener, Br
142126
private val STORAGE_PERMISSION = 1
143127
private val BACK_PRESS_TIMEOUT = 5000
144128

145-
private var mShowFullPath: Boolean = false
146129
private var mWasBackJustPressed: Boolean = false
147130
}
148131
}

app/src/main/res/layout/activity_settings.xml

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<ScrollView
3-
android:id="@+id/settings_scrollview"
43
xmlns:android="http://schemas.android.com/apk/res/android"
4+
android:id="@+id/settings_scrollview"
55
android:layout_width="match_parent"
66
android:layout_height="wrap_content">
77

@@ -62,31 +62,5 @@
6262
android:clickable="false"/>
6363

6464
</RelativeLayout>
65-
66-
<RelativeLayout
67-
android:id="@+id/settings_show_full_path_holder"
68-
android:layout_width="match_parent"
69-
android:layout_height="wrap_content"
70-
android:layout_marginTop="@dimen/settings_padding"
71-
android:background="?attr/selectableItemBackground"
72-
android:padding="@dimen/activity_margin">
73-
74-
<TextView
75-
android:id="@+id/settings_show_full_path_label"
76-
android:layout_width="wrap_content"
77-
android:layout_height="wrap_content"
78-
android:layout_centerVertical="true"
79-
android:paddingLeft="@dimen/settings_padding"
80-
android:text="@string/show_full_path"/>
81-
82-
<android.support.v7.widget.SwitchCompat
83-
android:id="@+id/settings_show_full_path"
84-
android:layout_width="wrap_content"
85-
android:layout_height="wrap_content"
86-
android:layout_alignParentRight="true"
87-
android:background="@null"
88-
android:clickable="false"/>
89-
90-
</RelativeLayout>
9165
</LinearLayout>
9266
</ScrollView>

app/src/main/res/values-de/strings.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,4 @@
7979
<string name="settings">Einstellungen</string>
8080
<string name="dark_theme">Dunkles Design</string>
8181
<string name="show_hidden">Zeige versteckte Dateien und Ordner</string>
82-
<string name="show_full_path">Zeige ganzen Dateipfad</string>
8382
</resources>

app/src/main/res/values-it/strings.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,4 @@
7979
<string name="settings">Impostazioni</string>
8080
<string name="dark_theme">Tema scuro</string>
8181
<string name="show_hidden">Mostra file e cartelle nascosti</string>
82-
<string name="show_full_path">Mostra percorso completo</string>
8382
</resources>

app/src/main/res/values-ja/strings.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,4 @@
7979
<string name="settings">設定</string>
8080
<string name="dark_theme">ダークテーマ</string>
8181
<string name="show_hidden">非表示のファイルとディレクトリーを表示する</string>
82-
<string name="show_full_path">Show full path</string>
8382
</resources>

app/src/main/res/values-pt-rPT/strings.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,4 @@
7979
<string name="settings">Definições</string>
8080
<string name="dark_theme">Tema escuro</string>
8181
<string name="show_hidden">Mostrar ficheiros e pastas ocultos</string>
82-
<string name="show_full_path">Mostrar caminho completo</string>
8382
</resources>

app/src/main/res/values-sv/strings.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,4 @@
7979
<string name="settings">Settings</string>
8080
<string name="dark_theme">Mörkt tema</string>
8181
<string name="show_hidden">Visa dolda filer</string>
82-
<string name="show_full_path">Show full path</string>
8382
</resources>

0 commit comments

Comments
 (0)