Skip to content

Commit

Permalink
Remove patch format options
Browse files Browse the repository at this point in the history
Output format will be the same as input
  • Loading branch information
topjohnwu committed Apr 9, 2019
1 parent 7481c53 commit e0424fd
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
3 changes: 0 additions & 3 deletions app/src/main/java/com/topjohnwu/magisk/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ public static class Key {
public static final String CHECK_UPDATES = "check_update";
public static final String UPDATE_CHANNEL = "update_channel";
public static final String CUSTOM_CHANNEL = "custom_channel";
public static final String BOOT_FORMAT = "boot_format";
public static final String LOCALE = "locale";
public static final String DARK_THEME = "dark_theme";
public static final String ETAG_KEY = "ETag";
Expand Down Expand Up @@ -214,7 +213,6 @@ private static int getConfigType(String key) {
return PREF_BOOL;

case Key.CUSTOM_CHANNEL:
case Key.BOOT_FORMAT:
case Key.LOCALE:
case Key.ETAG_KEY:
return PREF_STR;
Expand Down Expand Up @@ -327,7 +325,6 @@ public static void remove(String key) {

// prefs string
defs.put(Key.CUSTOM_CHANNEL, "");
defs.put(Key.BOOT_FORMAT, ".img");
defs.put(Key.LOCALE, "");
//defs.put(Key.ETAG_KEY, null);

Expand Down
5 changes: 0 additions & 5 deletions app/src/main/res/values/arrays.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,6 @@
<item>Canary (Debug)</item>
</string-array>

<string-array name="boot_formats">
<item>.img</item>
<item>.img.tar</item>
</string-array>

<string-array name="sorting_orders">
<item>@string/sort_by_name</item>
<item>@string/sort_by_update</item>
Expand Down
8 changes: 0 additions & 8 deletions app/src/main/res/xml/app_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,6 @@
android:entries="@array/update_channel"
android:entryValues="@array/value_array" />

<ListPreference
android:key="boot_format"
android:title="@string/settings_boot_format_title"
android:entries="@array/boot_formats"
android:entryValues="@array/boot_formats"
android:defaultValue=".img"
android:summary="@string/settings_boot_format_summary"/>

</PreferenceCategory>

<PreferenceCategory
Expand Down

0 comments on commit e0424fd

Please sign in to comment.