mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-04-16 12:11:26 +00:00
parent
82c864d57e
commit
9a15365a57
@ -64,6 +64,7 @@ dependencies {
|
|||||||
fullImplementation project(':app-core')
|
fullImplementation project(':app-core')
|
||||||
fullImplementation 'ru.noties:markwon:2.0.1'
|
fullImplementation 'ru.noties:markwon:2.0.1'
|
||||||
fullImplementation 'com.caverock:androidsvg-aar:1.3'
|
fullImplementation 'com.caverock:androidsvg-aar:1.3'
|
||||||
|
fullImplementation 'net.sourceforge.streamsupport:android-retrostreams:1.7.0'
|
||||||
|
|
||||||
def androidXVersion = "1.0.0"
|
def androidXVersion = "1.0.0"
|
||||||
implementation 'androidx.core:core:1.0.1'
|
implementation 'androidx.core:core:1.0.1'
|
||||||
|
3
app/proguard-rules.pro
vendored
3
app/proguard-rules.pro
vendored
@ -35,6 +35,9 @@
|
|||||||
# SVG
|
# SVG
|
||||||
-dontwarn com.caverock.androidsvg.SVGAndroidRenderer
|
-dontwarn com.caverock.androidsvg.SVGAndroidRenderer
|
||||||
|
|
||||||
|
# RetroStreams
|
||||||
|
-dontwarn java9.**
|
||||||
|
|
||||||
# Strip logging
|
# Strip logging
|
||||||
-assumenosideeffects class com.topjohnwu.magisk.utils.Logger {
|
-assumenosideeffects class com.topjohnwu.magisk.utils.Logger {
|
||||||
public *** debug(...);
|
public *** debug(...);
|
||||||
|
@ -33,6 +33,7 @@ import androidx.annotation.WorkerThread;
|
|||||||
import androidx.collection.ArraySet;
|
import androidx.collection.ArraySet;
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
import butterknife.BindView;
|
import butterknife.BindView;
|
||||||
|
import java9.util.Comparators;
|
||||||
|
|
||||||
public class ApplicationAdapter extends RecyclerView.Adapter<ApplicationAdapter.ViewHolder> {
|
public class ApplicationAdapter extends RecyclerView.Adapter<ApplicationAdapter.ViewHolder> {
|
||||||
|
|
||||||
@ -218,12 +219,13 @@ public class ApplicationAdapter extends RecyclerView.Adapter<ApplicationAdapter.
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int compareTo(HideAppInfo o) {
|
public int compareTo(HideAppInfo o) {
|
||||||
return Comparator.comparing((HideAppInfo t) -> t.hidden)
|
Comparator<HideAppInfo> c;
|
||||||
.reversed()
|
c = Comparators.comparing((HideAppInfo t) -> t.hidden);
|
||||||
.thenComparing((a, b) -> a.name.compareToIgnoreCase(b.name))
|
c = Comparators.reversed(c);
|
||||||
.thenComparing(t -> t.info.packageName)
|
c = Comparators.thenComparing(c, (a, b) -> a.name.compareToIgnoreCase(b.name));
|
||||||
.thenComparing(t -> t.process)
|
c = Comparators.thenComparing(c, t -> t.info.packageName);
|
||||||
.compare(this, o);
|
c = Comparators.thenComparing(c, t -> t.process);
|
||||||
|
return c.compare(this, o);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user