OSDN Git Service

Fix UXD for tablets
authorBILLyTheLiTTle <littleprog@gmail.com>
Tue, 11 Mar 2014 15:35:03 +0000 (17:35 +0200)
committerSteve Kondik <shade@chemlab.org>
Sun, 16 Mar 2014 05:54:30 +0000 (05:54 +0000)
Change-Id: I94b30c3ac95f7d63f6a33657a324fcc895ed3d45

Superuser/src/com/koushikdutta/superuser/PolicyFragmentInternal.java

index 6e56673..e50a465 100644 (file)
@@ -176,13 +176,7 @@ public class PolicyFragmentInternal extends ListContentFragmentInternal {
                     }
                     SuDatabaseHelper.setPolicy(getActivity(), up);
                     //update the adapters
-                    /*
-                     * TODO I should find a better way but this is ok
-                     * for the moment!
-                     */
-                    Intent i = new Intent(getContext(), getActivity().getClass());
-                    i.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
-                    getContext().startActivity(i);
+                    load();
                     break;
                 case 1:
                     final Handler handler = new Handler(){