Rahul Chaturvedi | 7fc77ca | 2015-05-19 18:02:16 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2015 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package com.android.launcher3; |
| 18 | |
Sunny Goyal | ba406e2 | 2018-04-02 11:36:12 -0700 | [diff] [blame] | 19 | import android.annotation.TargetApi; |
Rahul Chaturvedi | 7fc77ca | 2015-05-19 18:02:16 -0700 | [diff] [blame] | 20 | import android.app.Activity; |
Sunny Goyal | 848cad5 | 2017-07-07 03:12:21 -0700 | [diff] [blame] | 21 | import android.app.AlertDialog; |
| 22 | import android.app.Dialog; |
| 23 | import android.app.DialogFragment; |
| 24 | import android.app.FragmentManager; |
| 25 | import android.content.ComponentName; |
Sunny Goyal | f48e592 | 2016-05-12 15:36:20 -0700 | [diff] [blame] | 26 | import android.content.ContentResolver; |
Sunny Goyal | 848cad5 | 2017-07-07 03:12:21 -0700 | [diff] [blame] | 27 | import android.content.Context; |
| 28 | import android.content.DialogInterface; |
| 29 | import android.content.Intent; |
Sunny Goyal | ba406e2 | 2018-04-02 11:36:12 -0700 | [diff] [blame] | 30 | import android.os.Build; |
Rahul Chaturvedi | 7fc77ca | 2015-05-19 18:02:16 -0700 | [diff] [blame] | 31 | import android.os.Bundle; |
Sunny Goyal | ca18746 | 2017-03-31 20:09:34 -0700 | [diff] [blame] | 32 | import android.preference.ListPreference; |
Rahul Chaturvedi | 799aa04 | 2015-06-01 21:26:41 -0400 | [diff] [blame] | 33 | import android.preference.Preference; |
Rahul Chaturvedi | 7fc77ca | 2015-05-19 18:02:16 -0700 | [diff] [blame] | 34 | import android.preference.PreferenceFragment; |
Sunny Goyal | ba406e2 | 2018-04-02 11:36:12 -0700 | [diff] [blame] | 35 | import android.preference.PreferenceScreen; |
Sunny Goyal | f48e592 | 2016-05-12 15:36:20 -0700 | [diff] [blame] | 36 | import android.provider.Settings; |
Sunny Goyal | 3fbca15 | 2017-11-02 18:55:44 -0700 | [diff] [blame] | 37 | import android.text.TextUtils; |
Sunny Goyal | 3fbca15 | 2017-11-02 18:55:44 -0700 | [diff] [blame] | 38 | import android.view.View; |
Sunny Goyal | 3fbca15 | 2017-11-02 18:55:44 -0700 | [diff] [blame] | 39 | import android.widget.Adapter; |
Sunny Goyal | ba406e2 | 2018-04-02 11:36:12 -0700 | [diff] [blame] | 40 | import android.widget.ListView; |
Rahul Chaturvedi | 7fc77ca | 2015-05-19 18:02:16 -0700 | [diff] [blame] | 41 | |
Sunny Goyal | ca18746 | 2017-03-31 20:09:34 -0700 | [diff] [blame] | 42 | import com.android.launcher3.graphics.IconShapeOverride; |
Sunny Goyal | 848cad5 | 2017-07-07 03:12:21 -0700 | [diff] [blame] | 43 | import com.android.launcher3.notification.NotificationListener; |
Sunny Goyal | ba406e2 | 2018-04-02 11:36:12 -0700 | [diff] [blame] | 44 | import com.android.launcher3.util.ListViewHighlighter; |
Tony | d48710c | 2017-07-27 23:23:58 -0700 | [diff] [blame] | 45 | import com.android.launcher3.util.SettingsObserver; |
Sunny Goyal | 848cad5 | 2017-07-07 03:12:21 -0700 | [diff] [blame] | 46 | import com.android.launcher3.views.ButtonPreference; |
Sunny Goyal | ba406e2 | 2018-04-02 11:36:12 -0700 | [diff] [blame] | 47 | |
| 48 | import java.util.Objects; |
Sunny Goyal | ca18746 | 2017-03-31 20:09:34 -0700 | [diff] [blame] | 49 | |
Rahul Chaturvedi | 7fc77ca | 2015-05-19 18:02:16 -0700 | [diff] [blame] | 50 | /** |
Rahul Chaturvedi | 799aa04 | 2015-06-01 21:26:41 -0400 | [diff] [blame] | 51 | * Settings activity for Launcher. Currently implements the following setting: Allow rotation |
Rahul Chaturvedi | 7fc77ca | 2015-05-19 18:02:16 -0700 | [diff] [blame] | 52 | */ |
| 53 | public class SettingsActivity extends Activity { |
Tony Wickham | 2ab8482 | 2017-05-12 14:59:09 -0700 | [diff] [blame] | 54 | |
| 55 | private static final String ICON_BADGING_PREFERENCE_KEY = "pref_icon_badging"; |
Tony | d48710c | 2017-07-27 23:23:58 -0700 | [diff] [blame] | 56 | /** Hidden field Settings.Secure.NOTIFICATION_BADGING */ |
| 57 | public static final String NOTIFICATION_BADGING = "notification_badging"; |
Sunny Goyal | 848cad5 | 2017-07-07 03:12:21 -0700 | [diff] [blame] | 58 | /** Hidden field Settings.Secure.ENABLED_NOTIFICATION_LISTENERS */ |
| 59 | private static final String NOTIFICATION_ENABLED_LISTENERS = "enabled_notification_listeners"; |
Tony Wickham | 2ab8482 | 2017-05-12 14:59:09 -0700 | [diff] [blame] | 60 | |
Sunny Goyal | 3fbca15 | 2017-11-02 18:55:44 -0700 | [diff] [blame] | 61 | private static final String EXTRA_FRAGMENT_ARG_KEY = ":settings:fragment_args_key"; |
Sunny Goyal | d47f2d2 | 2018-04-18 14:11:37 -0700 | [diff] [blame^] | 62 | private static final String EXTRA_SHOW_FRAGMENT_ARGS = ":settings:show_fragment_args"; |
Sunny Goyal | 3fbca15 | 2017-11-02 18:55:44 -0700 | [diff] [blame] | 63 | private static final int DELAY_HIGHLIGHT_DURATION_MILLIS = 600; |
| 64 | private static final String SAVE_HIGHLIGHTED_KEY = "android:preference_highlighted"; |
| 65 | |
Rahul Chaturvedi | 7fc77ca | 2015-05-19 18:02:16 -0700 | [diff] [blame] | 66 | @Override |
| 67 | protected void onCreate(Bundle savedInstanceState) { |
| 68 | super.onCreate(savedInstanceState); |
| 69 | |
Mario Bertschler | 2de2d67 | 2017-06-30 18:51:46 -0700 | [diff] [blame] | 70 | if (savedInstanceState == null) { |
| 71 | // Display the fragment as the main content. |
| 72 | getFragmentManager().beginTransaction() |
Sunny Goyal | 3fbca15 | 2017-11-02 18:55:44 -0700 | [diff] [blame] | 73 | .replace(android.R.id.content, getNewFragment()) |
Mario Bertschler | 2de2d67 | 2017-06-30 18:51:46 -0700 | [diff] [blame] | 74 | .commit(); |
| 75 | } |
Rahul Chaturvedi | 7fc77ca | 2015-05-19 18:02:16 -0700 | [diff] [blame] | 76 | } |
| 77 | |
Sunny Goyal | 3fbca15 | 2017-11-02 18:55:44 -0700 | [diff] [blame] | 78 | protected PreferenceFragment getNewFragment() { |
| 79 | return new LauncherSettingsFragment(); |
| 80 | } |
| 81 | |
Rahul Chaturvedi | 7fc77ca | 2015-05-19 18:02:16 -0700 | [diff] [blame] | 82 | /** |
| 83 | * This fragment shows the launcher preferences. |
| 84 | */ |
Sunny Goyal | f48e592 | 2016-05-12 15:36:20 -0700 | [diff] [blame] | 85 | public static class LauncherSettingsFragment extends PreferenceFragment { |
| 86 | |
Tony Wickham | 2ab8482 | 2017-05-12 14:59:09 -0700 | [diff] [blame] | 87 | private IconBadgingObserver mIconBadgingObserver; |
Sunny Goyal | f48e592 | 2016-05-12 15:36:20 -0700 | [diff] [blame] | 88 | |
Sunny Goyal | 3fbca15 | 2017-11-02 18:55:44 -0700 | [diff] [blame] | 89 | private String mPreferenceKey; |
| 90 | private boolean mPreferenceHighlighted = false; |
| 91 | |
| 92 | @Override |
Rahul Chaturvedi | 7fc77ca | 2015-05-19 18:02:16 -0700 | [diff] [blame] | 93 | public void onCreate(Bundle savedInstanceState) { |
| 94 | super.onCreate(savedInstanceState); |
Sunny Goyal | 3fbca15 | 2017-11-02 18:55:44 -0700 | [diff] [blame] | 95 | if (savedInstanceState != null) { |
| 96 | mPreferenceHighlighted = savedInstanceState.getBoolean(SAVE_HIGHLIGHTED_KEY); |
| 97 | } |
| 98 | |
Sunny Goyal | f48e592 | 2016-05-12 15:36:20 -0700 | [diff] [blame] | 99 | getPreferenceManager().setSharedPreferencesName(LauncherFiles.SHARED_PREFERENCES_KEY); |
Rahul Chaturvedi | 7fc77ca | 2015-05-19 18:02:16 -0700 | [diff] [blame] | 100 | addPreferencesFromResource(R.xml.launcher_preferences); |
Sunny Goyal | 7779d62 | 2015-06-11 16:18:39 -0700 | [diff] [blame] | 101 | |
Tony Wickham | 2ab8482 | 2017-05-12 14:59:09 -0700 | [diff] [blame] | 102 | ContentResolver resolver = getActivity().getContentResolver(); |
| 103 | |
Sunny Goyal | 848cad5 | 2017-07-07 03:12:21 -0700 | [diff] [blame] | 104 | ButtonPreference iconBadgingPref = |
| 105 | (ButtonPreference) findPreference(ICON_BADGING_PREFERENCE_KEY); |
Hyunyoung Song | e24cb63 | 2017-09-11 11:18:03 -0700 | [diff] [blame] | 106 | if (!Utilities.ATLEAST_OREO) { |
Sunny Goyal | 4179e9b | 2017-03-08 14:25:09 -0800 | [diff] [blame] | 107 | getPreferenceScreen().removePreference( |
| 108 | findPreference(SessionCommitReceiver.ADD_ICON_PREFERENCE_KEY)); |
Tony Wickham | 2ab8482 | 2017-05-12 14:59:09 -0700 | [diff] [blame] | 109 | getPreferenceScreen().removePreference(iconBadgingPref); |
Tony Wickham | c138515 | 2017-08-14 14:31:03 -0700 | [diff] [blame] | 110 | } else if (!getResources().getBoolean(R.bool.notification_badging_enabled)) { |
| 111 | getPreferenceScreen().removePreference(iconBadgingPref); |
Tony Wickham | 2ab8482 | 2017-05-12 14:59:09 -0700 | [diff] [blame] | 112 | } else { |
| 113 | // Listen to system notification badge settings while this UI is active. |
Sunny Goyal | 848cad5 | 2017-07-07 03:12:21 -0700 | [diff] [blame] | 114 | mIconBadgingObserver = new IconBadgingObserver( |
| 115 | iconBadgingPref, resolver, getFragmentManager()); |
Tony | d48710c | 2017-07-27 23:23:58 -0700 | [diff] [blame] | 116 | mIconBadgingObserver.register(NOTIFICATION_BADGING, NOTIFICATION_ENABLED_LISTENERS); |
Sunny Goyal | 4179e9b | 2017-03-08 14:25:09 -0800 | [diff] [blame] | 117 | } |
Sunny Goyal | ca18746 | 2017-03-31 20:09:34 -0700 | [diff] [blame] | 118 | |
| 119 | Preference iconShapeOverride = findPreference(IconShapeOverride.KEY_PREFERENCE); |
| 120 | if (iconShapeOverride != null) { |
| 121 | if (IconShapeOverride.isSupported(getActivity())) { |
| 122 | IconShapeOverride.handlePreferenceUi((ListPreference) iconShapeOverride); |
| 123 | } else { |
| 124 | getPreferenceScreen().removePreference(iconShapeOverride); |
| 125 | } |
| 126 | } |
Rahul Chaturvedi | 7fc77ca | 2015-05-19 18:02:16 -0700 | [diff] [blame] | 127 | } |
Rahul Chaturvedi | 799aa04 | 2015-06-01 21:26:41 -0400 | [diff] [blame] | 128 | |
| 129 | @Override |
Sunny Goyal | 3fbca15 | 2017-11-02 18:55:44 -0700 | [diff] [blame] | 130 | public void onSaveInstanceState(Bundle outState) { |
| 131 | super.onSaveInstanceState(outState); |
| 132 | outState.putBoolean(SAVE_HIGHLIGHTED_KEY, mPreferenceHighlighted); |
| 133 | } |
| 134 | |
| 135 | @Override |
| 136 | public void onResume() { |
| 137 | super.onResume(); |
| 138 | |
| 139 | Intent intent = getActivity().getIntent(); |
| 140 | mPreferenceKey = intent.getStringExtra(EXTRA_FRAGMENT_ARG_KEY); |
| 141 | if (isAdded() && !mPreferenceHighlighted && !TextUtils.isEmpty(mPreferenceKey)) { |
| 142 | getView().postDelayed(this::highlightPreference, DELAY_HIGHLIGHT_DURATION_MILLIS); |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | private void highlightPreference() { |
Sunny Goyal | 3fbca15 | 2017-11-02 18:55:44 -0700 | [diff] [blame] | 147 | Preference pref = findPreference(mPreferenceKey); |
Sunny Goyal | ba406e2 | 2018-04-02 11:36:12 -0700 | [diff] [blame] | 148 | if (pref == null || getPreferenceScreen() == null) { |
Sunny Goyal | 3fbca15 | 2017-11-02 18:55:44 -0700 | [diff] [blame] | 149 | return; |
| 150 | } |
Sunny Goyal | ba406e2 | 2018-04-02 11:36:12 -0700 | [diff] [blame] | 151 | PreferenceScreen screen = getPreferenceScreen(); |
| 152 | if (Utilities.ATLEAST_OREO) { |
| 153 | screen = selectPreferenceRecursive(pref, screen); |
| 154 | } |
| 155 | if (screen == null) { |
| 156 | return; |
| 157 | } |
| 158 | |
| 159 | View root = screen.getDialog() != null |
| 160 | ? screen.getDialog().getWindow().getDecorView() : getView(); |
| 161 | ListView list = root.findViewById(android.R.id.list); |
| 162 | if (list == null || list.getAdapter() == null) { |
| 163 | return; |
| 164 | } |
| 165 | Adapter adapter = list.getAdapter(); |
Sunny Goyal | 3fbca15 | 2017-11-02 18:55:44 -0700 | [diff] [blame] | 166 | |
| 167 | // Find the position |
| 168 | int position = -1; |
| 169 | for (int i = adapter.getCount() - 1; i >= 0; i--) { |
| 170 | if (pref == adapter.getItem(i)) { |
| 171 | position = i; |
| 172 | break; |
| 173 | } |
| 174 | } |
Sunny Goyal | ba406e2 | 2018-04-02 11:36:12 -0700 | [diff] [blame] | 175 | new ListViewHighlighter(list, position); |
Sunny Goyal | 3fbca15 | 2017-11-02 18:55:44 -0700 | [diff] [blame] | 176 | mPreferenceHighlighted = true; |
| 177 | } |
| 178 | |
| 179 | @Override |
Sunny Goyal | f48e592 | 2016-05-12 15:36:20 -0700 | [diff] [blame] | 180 | public void onDestroy() { |
Tony Wickham | 2ab8482 | 2017-05-12 14:59:09 -0700 | [diff] [blame] | 181 | if (mIconBadgingObserver != null) { |
Tony | d48710c | 2017-07-27 23:23:58 -0700 | [diff] [blame] | 182 | mIconBadgingObserver.unregister(); |
Tony Wickham | 2ab8482 | 2017-05-12 14:59:09 -0700 | [diff] [blame] | 183 | mIconBadgingObserver = null; |
| 184 | } |
Sunny Goyal | f48e592 | 2016-05-12 15:36:20 -0700 | [diff] [blame] | 185 | super.onDestroy(); |
| 186 | } |
Sunny Goyal | ba406e2 | 2018-04-02 11:36:12 -0700 | [diff] [blame] | 187 | |
| 188 | @TargetApi(Build.VERSION_CODES.O) |
| 189 | private PreferenceScreen selectPreferenceRecursive( |
| 190 | Preference pref, PreferenceScreen topParent) { |
| 191 | if (!(pref.getParent() instanceof PreferenceScreen)) { |
| 192 | return null; |
| 193 | } |
| 194 | |
| 195 | PreferenceScreen parent = (PreferenceScreen) pref.getParent(); |
| 196 | if (Objects.equals(parent.getKey(), topParent.getKey())) { |
| 197 | return parent; |
| 198 | } else if (selectPreferenceRecursive(parent, topParent) != null) { |
| 199 | ((PreferenceScreen) parent.getParent()) |
| 200 | .onItemClick(null, null, parent.getOrder(), 0); |
| 201 | return parent; |
| 202 | } else { |
| 203 | return null; |
| 204 | } |
| 205 | } |
Sunny Goyal | f48e592 | 2016-05-12 15:36:20 -0700 | [diff] [blame] | 206 | } |
| 207 | |
| 208 | /** |
Tony Wickham | 2ab8482 | 2017-05-12 14:59:09 -0700 | [diff] [blame] | 209 | * Content observer which listens for system badging setting changes, |
| 210 | * and updates the launcher badging setting subtext accordingly. |
| 211 | */ |
Tony | d48710c | 2017-07-27 23:23:58 -0700 | [diff] [blame] | 212 | private static class IconBadgingObserver extends SettingsObserver.Secure |
Sunny Goyal | b65e13c | 2017-08-01 11:04:15 -0700 | [diff] [blame] | 213 | implements Preference.OnPreferenceClickListener { |
Tony Wickham | 2ab8482 | 2017-05-12 14:59:09 -0700 | [diff] [blame] | 214 | |
Sunny Goyal | 848cad5 | 2017-07-07 03:12:21 -0700 | [diff] [blame] | 215 | private final ButtonPreference mBadgingPref; |
Tony Wickham | 2ab8482 | 2017-05-12 14:59:09 -0700 | [diff] [blame] | 216 | private final ContentResolver mResolver; |
Sunny Goyal | 848cad5 | 2017-07-07 03:12:21 -0700 | [diff] [blame] | 217 | private final FragmentManager mFragmentManager; |
Tony Wickham | 2ab8482 | 2017-05-12 14:59:09 -0700 | [diff] [blame] | 218 | |
Sunny Goyal | 848cad5 | 2017-07-07 03:12:21 -0700 | [diff] [blame] | 219 | public IconBadgingObserver(ButtonPreference badgingPref, ContentResolver resolver, |
| 220 | FragmentManager fragmentManager) { |
Tony | d48710c | 2017-07-27 23:23:58 -0700 | [diff] [blame] | 221 | super(resolver); |
Tony Wickham | 2ab8482 | 2017-05-12 14:59:09 -0700 | [diff] [blame] | 222 | mBadgingPref = badgingPref; |
| 223 | mResolver = resolver; |
Sunny Goyal | 848cad5 | 2017-07-07 03:12:21 -0700 | [diff] [blame] | 224 | mFragmentManager = fragmentManager; |
Tony Wickham | 2ab8482 | 2017-05-12 14:59:09 -0700 | [diff] [blame] | 225 | } |
| 226 | |
| 227 | @Override |
Tony | d48710c | 2017-07-27 23:23:58 -0700 | [diff] [blame] | 228 | public void onSettingChanged(boolean enabled) { |
Sunny Goyal | 848cad5 | 2017-07-07 03:12:21 -0700 | [diff] [blame] | 229 | int summary = enabled ? R.string.icon_badging_desc_on : R.string.icon_badging_desc_off; |
| 230 | |
| 231 | boolean serviceEnabled = true; |
| 232 | if (enabled) { |
| 233 | // Check if the listener is enabled or not. |
| 234 | String enabledListeners = |
| 235 | Settings.Secure.getString(mResolver, NOTIFICATION_ENABLED_LISTENERS); |
| 236 | ComponentName myListener = |
| 237 | new ComponentName(mBadgingPref.getContext(), NotificationListener.class); |
| 238 | serviceEnabled = enabledListeners != null && |
| 239 | (enabledListeners.contains(myListener.flattenToString()) || |
| 240 | enabledListeners.contains(myListener.flattenToShortString())); |
| 241 | if (!serviceEnabled) { |
| 242 | summary = R.string.title_missing_notification_access; |
| 243 | } |
| 244 | } |
Sunny Goyal | b65e13c | 2017-08-01 11:04:15 -0700 | [diff] [blame] | 245 | mBadgingPref.setWidgetFrameVisible(!serviceEnabled); |
| 246 | mBadgingPref.setOnPreferenceClickListener(serviceEnabled ? null : this); |
Sunny Goyal | 848cad5 | 2017-07-07 03:12:21 -0700 | [diff] [blame] | 247 | mBadgingPref.setSummary(summary); |
| 248 | |
| 249 | } |
| 250 | |
| 251 | @Override |
Sunny Goyal | b65e13c | 2017-08-01 11:04:15 -0700 | [diff] [blame] | 252 | public boolean onPreferenceClick(Preference preference) { |
Sunny Goyal | 848cad5 | 2017-07-07 03:12:21 -0700 | [diff] [blame] | 253 | new NotificationAccessConfirmation().show(mFragmentManager, "notification_access"); |
Sunny Goyal | b65e13c | 2017-08-01 11:04:15 -0700 | [diff] [blame] | 254 | return true; |
Tony Wickham | 2ab8482 | 2017-05-12 14:59:09 -0700 | [diff] [blame] | 255 | } |
| 256 | } |
| 257 | |
Sunny Goyal | 848cad5 | 2017-07-07 03:12:21 -0700 | [diff] [blame] | 258 | public static class NotificationAccessConfirmation |
| 259 | extends DialogFragment implements DialogInterface.OnClickListener { |
| 260 | |
| 261 | @Override |
| 262 | public Dialog onCreateDialog(Bundle savedInstanceState) { |
| 263 | final Context context = getActivity(); |
| 264 | String msg = context.getString(R.string.msg_missing_notification_access, |
| 265 | context.getString(R.string.derived_app_name)); |
| 266 | return new AlertDialog.Builder(context) |
| 267 | .setTitle(R.string.title_missing_notification_access) |
| 268 | .setMessage(msg) |
| 269 | .setNegativeButton(android.R.string.cancel, null) |
| 270 | .setPositiveButton(R.string.title_change_settings, this) |
| 271 | .create(); |
| 272 | } |
| 273 | |
| 274 | @Override |
| 275 | public void onClick(DialogInterface dialogInterface, int i) { |
| 276 | ComponentName cn = new ComponentName(getActivity(), NotificationListener.class); |
Sunny Goyal | d47f2d2 | 2018-04-18 14:11:37 -0700 | [diff] [blame^] | 277 | Bundle showFragmentArgs = new Bundle(); |
| 278 | showFragmentArgs.putString(EXTRA_FRAGMENT_ARG_KEY, cn.flattenToString()); |
| 279 | |
Sunny Goyal | 848cad5 | 2017-07-07 03:12:21 -0700 | [diff] [blame] | 280 | Intent intent = new Intent(Settings.ACTION_NOTIFICATION_LISTENER_SETTINGS) |
| 281 | .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) |
Sunny Goyal | d47f2d2 | 2018-04-18 14:11:37 -0700 | [diff] [blame^] | 282 | .putExtra(EXTRA_FRAGMENT_ARG_KEY, cn.flattenToString()) |
| 283 | .putExtra(EXTRA_SHOW_FRAGMENT_ARGS, showFragmentArgs); |
Sunny Goyal | 848cad5 | 2017-07-07 03:12:21 -0700 | [diff] [blame] | 284 | getActivity().startActivity(intent); |
| 285 | } |
| 286 | } |
Rahul Chaturvedi | 7fc77ca | 2015-05-19 18:02:16 -0700 | [diff] [blame] | 287 | } |