11package tw .idv .palatis .xappdebug .ui ;
22
3+ import static tw .idv .palatis .xappdebug .BuildConfig .VERSION_NAME ;
4+
35import android .content .Intent ;
46import android .net .Uri ;
57import android .os .Bundle ;
6- import android .util .Log ;
78import android .view .LayoutInflater ;
89import android .view .View ;
910import android .view .ViewGroup ;
1011import android .widget .Button ;
1112import android .widget .TextView ;
1213
13- import androidx .annotation .Keep ;
1414import androidx .annotation .NonNull ;
1515import androidx .fragment .app .Fragment ;
16- import tw .idv .palatis .xappdebug .R ;
1716
18- import static tw .idv .palatis .xappdebug .BuildConfig . VERSION_NAME ;
19- import static tw .idv .palatis .xappdebug .Constants . LOG_TAG ;
17+ import tw .idv .palatis .xappdebug .MainApplication ;
18+ import tw .idv .palatis .xappdebug .R ;
2019
2120public class AboutFragment extends Fragment {
22-
23- @ Keep
24- private static int getActiveXposedVersion () {
25- Log .d (LOG_TAG , "Xposed framework is inactive." );
26- return -1 ;
27- }
28-
2921 public View onCreateView (@ NonNull LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) {
3022 final View root = inflater .inflate (R .layout .fragment_about , container , false );
3123 final Button button = root .findViewById (R .id .github );
@@ -34,7 +26,7 @@ public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,
3426 final TextView version = root .findViewById (R .id .version );
3527 version .setText (getString (R .string .app_version , VERSION_NAME ));
3628
37- int xposed = getActiveXposedVersion ();
29+ int xposed = MainApplication . getActiveXposedVersion ();
3830 if (xposed != -1 ) {
3931 final TextView text = root .findViewById (R .id .xposed );
4032 text .setText (getString (R .string .xposed_version , xposed ));
0 commit comments