• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

external/koush/Superuser


Commit MetaInfo

Révision2c2f827da27ee2280730cbc8a2b27593e292f2a5 (tree)
l'heure2019-12-24 01:57:43
AuteurChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Message de Log

Replace android.support.v4.app by AndroidX

AndroidX is a major improvement to the original Android Support
Library, which is no longer maintained.

Change Summary

Modification

--- a/Superuser/src/com/koushikdutta/superuser/LogFragment.java
+++ b/Superuser/src/com/koushikdutta/superuser/LogFragment.java
@@ -17,7 +17,7 @@
1717 package com.koushikdutta.superuser;
1818
1919
20-import android.support.v4.app.Fragment;
20+import androidx.fragment.app.Fragment;
2121
2222 import com.koushikdutta.widgets.SupportFragment;
2323
@@ -35,8 +35,6 @@ public class LogFragment extends SupportFragment<LogFragmentInternal> {
3535 }
3636
3737 void onDelete(int id) {
38-// getFragmentManager().beginTransaction().remove(this).commit();
39-// getFragmentManager().popBackStack("content", FragmentManager.POP_BACK_STACK_INCLUSIVE);
4038 Fragment f = getFragmentManager().findFragmentById(id);
4139 if (f != null && f instanceof PolicyFragment) {
4240 PolicyFragment p = (PolicyFragment)f;
--- a/Superuser/src/com/koushikdutta/superuser/LogNativeFragment.java
+++ b/Superuser/src/com/koushikdutta/superuser/LogNativeFragment.java
@@ -17,13 +17,13 @@
1717 package com.koushikdutta.superuser;
1818
1919 import android.annotation.SuppressLint;
20-import android.app.Fragment;
2120 import android.content.Context;
2221 import android.os.Bundle;
2322 import android.view.ContextThemeWrapper;
2423 import android.view.LayoutInflater;
2524 import android.view.View;
2625 import android.view.ViewGroup;
26+import androidx.fragment.app.Fragment;
2727
2828 import com.koushikdutta.widgets.NativeFragment;
2929
@@ -59,8 +59,6 @@ public class LogNativeFragment extends NativeFragment<LogFragmentInternal> {
5959 }
6060
6161 void onDelete(int id) {
62-// getFragmentManager().beginTransaction().remove(this).commit();
63-// getFragmentManager().popBackStack("content", FragmentManager.POP_BACK_STACK_INCLUSIVE);
6462 Fragment f = getFragmentManager().findFragmentById(id);
6563 if (f != null && f instanceof PolicyNativeFragment) {
6664 PolicyNativeFragment p = (PolicyNativeFragment)f;
--- a/Superuser/src/com/koushikdutta/superuser/MultitaskSuRequestActivity.java
+++ b/Superuser/src/com/koushikdutta/superuser/MultitaskSuRequestActivity.java
@@ -31,7 +31,6 @@ import android.net.LocalSocketAddress;
3131 import android.net.LocalSocketAddress.Namespace;
3232 import android.os.Bundle;
3333 import android.os.Handler;
34-import android.support.v4.app.FragmentActivity;
3534 import android.util.Log;
3635 import android.view.View;
3736 import android.view.View.OnClickListener;
@@ -44,6 +43,7 @@ import android.widget.RadioGroup;
4443 import android.widget.Spinner;
4544 import android.widget.TextView;
4645 import android.widget.Toast;
46+import androidx.fragment.app.FragmentActivity;
4747
4848 import com.koushikdutta.superuser.db.SuDatabaseHelper;
4949 import com.koushikdutta.superuser.db.UidPolicy;
--- a/Superuser/src/com/koushikdutta/superuser/PolicyFragmentInternal.java
+++ b/Superuser/src/com/koushikdutta/superuser/PolicyFragmentInternal.java
@@ -32,7 +32,6 @@ import android.graphics.drawable.Drawable;
3232 import android.os.Bundle;
3333 import android.os.Handler;
3434 import android.os.Message;
35-import android.support.v4.app.FragmentActivity;
3635 import android.text.format.DateFormat;
3736 import android.util.TypedValue;
3837 import android.view.ContextThemeWrapper;
@@ -42,6 +41,7 @@ import android.view.MenuItem;
4241 import android.view.MenuItem.OnMenuItemClickListener;
4342 import android.view.View;
4443 import android.widget.ImageView;
44+import androidx.fragment.app.FragmentActivity;
4545
4646 import com.koushikdutta.superuser.db.LogEntry;
4747 import com.koushikdutta.superuser.db.SuDatabaseHelper;
--- a/Superuser/src/com/koushikdutta/superuser/SuCheckerReceiver.java
+++ b/Superuser/src/com/koushikdutta/superuser/SuCheckerReceiver.java
@@ -6,8 +6,8 @@ import android.content.BroadcastReceiver;
66 import android.content.Context;
77 import android.content.Intent;
88 import android.os.Handler;
9-import android.support.v4.app.NotificationCompat;
109 import android.util.Log;
10+import androidx.core.app.NotificationCompat;
1111
1212 import com.koushikdutta.superuser.util.Settings;
1313 import com.koushikdutta.superuser.util.SuHelper;
--- a/Superuser/src/com/koushikdutta/superuser/SuReceiver.java
+++ b/Superuser/src/com/koushikdutta/superuser/SuReceiver.java
@@ -21,8 +21,8 @@ import android.app.PendingIntent;
2121 import android.content.BroadcastReceiver;
2222 import android.content.Context;
2323 import android.content.Intent;
24-import android.support.v4.app.NotificationCompat;
2524 import android.widget.Toast;
25+import androidx.core.app.NotificationCompat;
2626
2727 import com.koushikdutta.superuser.db.LogEntry;
2828 import com.koushikdutta.superuser.db.SuperuserDatabaseHelper;