Removing unused title change logic in settings
Bug: 305084752 Test: Manual Flag: N/A Change-Id: I93e8a58c579223d5892528a47cff5bcafd69dbf1
This commit is contained in:
@@ -50,8 +50,6 @@ import androidx.preference.PreferenceScreen;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.android.launcher3.BuildConfig;
|
||||
import com.android.launcher3.DeviceProfile;
|
||||
import com.android.launcher3.InvariantDeviceProfile;
|
||||
import com.android.launcher3.LauncherFiles;
|
||||
import com.android.launcher3.R;
|
||||
import com.android.launcher3.Utilities;
|
||||
@@ -206,15 +204,6 @@ public class SettingsActivity extends FragmentActivity
|
||||
}
|
||||
|
||||
if (getActivity() != null && !TextUtils.isEmpty(getPreferenceScreen().getTitle())) {
|
||||
if (getPreferenceScreen().getTitle().equals(
|
||||
getResources().getString(R.string.search_pref_screen_title))){
|
||||
DeviceProfile mDeviceProfile = InvariantDeviceProfile.INSTANCE.get(
|
||||
getContext()).getDeviceProfile(getContext());
|
||||
getPreferenceScreen().setTitle(mDeviceProfile.isMultiDisplay
|
||||
|| mDeviceProfile.isPhone ?
|
||||
R.string.search_pref_screen_title :
|
||||
R.string.search_pref_screen_title_tablet);
|
||||
}
|
||||
getActivity().setTitle(getPreferenceScreen().getTitle());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user