Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 28b57a5a authored by Andrew Lee's avatar Andrew Lee Committed by Android (Google) Code Review
Browse files

Merge "Finish the respond via SMS setting activity to return to top level." into lmp-dev

parents 9a93a026 55f3c693
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -152,19 +152,6 @@ public class RespondViaSmsSettings {
     * Finish current Activity and go up to the top level Settings.
     */
    public static void goUpToTopLevelSetting(Activity activity) {
        Intent intent = new Intent();
        try {
            intent.setClassName(
                    activity.createPackageContext("com.android.phone", 0),
                    "com.android.phone.CallFeaturesSetting");
        } catch (PackageManager.NameNotFoundException e) {
            Log.w(RespondViaSmsSettings.class,
                    "Exception building package context com.android.phone", e);
            return;
        }
        intent.setAction(Intent.ACTION_MAIN);
        intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
        activity.startActivity(intent);
        activity.finish();
     }
}