Snap for 7947497 from 2c47b3f89e to tm-release
Change-Id: Idc9cdb1316b6b333d4231964abd1bfa1784d0d9d
This commit is contained in:
@@ -55,7 +55,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:maxLines="2"
|
android:maxLines="3"
|
||||||
android:clickable="false"
|
android:clickable="false"
|
||||||
android:focusable="false"
|
android:focusable="false"
|
||||||
android:layout_toEndOf="@id/bubble_all_icon"
|
android:layout_toEndOf="@id/bubble_all_icon"
|
||||||
@@ -87,7 +87,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:maxLines="2"
|
android:maxLines="3"
|
||||||
android:clickable="false"
|
android:clickable="false"
|
||||||
android:focusable="false"
|
android:focusable="false"
|
||||||
android:layout_toEndOf="@id/bubble_selected_icon"
|
android:layout_toEndOf="@id/bubble_selected_icon"
|
||||||
@@ -119,7 +119,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:maxLines="2"
|
android:maxLines="3"
|
||||||
android:clickable="false"
|
android:clickable="false"
|
||||||
android:focusable="false"
|
android:focusable="false"
|
||||||
android:layout_toEndOf="@id/bubble_none_icon"
|
android:layout_toEndOf="@id/bubble_none_icon"
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ import androidx.lifecycle.MutableLiveData;
|
|||||||
import androidx.lifecycle.OnLifecycleEvent;
|
import androidx.lifecycle.OnLifecycleEvent;
|
||||||
|
|
||||||
import com.android.settings.R;
|
import com.android.settings.R;
|
||||||
|
import com.android.settings.activityembedding.ActivityEmbeddingRulesController;
|
||||||
import com.android.settings.homepage.SettingsHomepageActivity;
|
import com.android.settings.homepage.SettingsHomepageActivity;
|
||||||
import com.android.settings.overlay.FeatureFactory;
|
import com.android.settings.overlay.FeatureFactory;
|
||||||
import com.android.settingslib.utils.ThreadUtils;
|
import com.android.settingslib.utils.ThreadUtils;
|
||||||
@@ -105,6 +106,17 @@ public class AvatarViewMixin implements LifecycleObserver {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set a component name since activity embedding requires a component name for
|
||||||
|
// registering a rule.
|
||||||
|
intent.setComponent(matchedIntents.get(0).getComponentInfo().getComponentName());
|
||||||
|
ActivityEmbeddingRulesController.registerTwoPanePairRuleForSettingsHome(
|
||||||
|
mContext,
|
||||||
|
intent.getComponent(),
|
||||||
|
intent.getAction(),
|
||||||
|
false /* finishPrimaryWithSecondary */,
|
||||||
|
true /* finishSecondaryWithPrimary */,
|
||||||
|
false /* clearTop */);
|
||||||
|
|
||||||
FeatureFactory.getFactory(mContext).getMetricsFeatureProvider()
|
FeatureFactory.getFactory(mContext).getMetricsFeatureProvider()
|
||||||
.logSettingsTileClick(KEY_AVATAR_ICON, SettingsEnums.SETTINGS_HOMEPAGE);
|
.logSettingsTileClick(KEY_AVATAR_ICON, SettingsEnums.SETTINGS_HOMEPAGE);
|
||||||
|
|
||||||
|
|||||||
@@ -322,6 +322,8 @@ public class ApnSettings extends RestrictedSettingsFragment
|
|||||||
final StringBuilder where =
|
final StringBuilder where =
|
||||||
new StringBuilder("NOT (type='ia' AND (apn=\"\" OR apn IS NULL)) AND "
|
new StringBuilder("NOT (type='ia' AND (apn=\"\" OR apn IS NULL)) AND "
|
||||||
+ "user_visible!=0");
|
+ "user_visible!=0");
|
||||||
|
// Remove Emergency type, users should not mess with that
|
||||||
|
where.append(" AND NOT (type='emergency')");
|
||||||
|
|
||||||
if (mHideImsApn) {
|
if (mHideImsApn) {
|
||||||
where.append(" AND NOT (type='ims')");
|
where.append(" AND NOT (type='ims')");
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ import android.telephony.ims.ProvisioningManager;
|
|||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.text.util.Linkify;
|
import android.text.util.Linkify;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
import android.view.Gravity;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
@@ -193,6 +194,7 @@ public class WifiCallingSettingsForSub extends SettingsPreferenceFragment
|
|||||||
final String emptyViewText = res.getString(R.string.wifi_calling_off_explanation,
|
final String emptyViewText = res.getString(R.string.wifi_calling_off_explanation,
|
||||||
res.getString(R.string.wifi_calling_off_explanation_2));
|
res.getString(R.string.wifi_calling_off_explanation_2));
|
||||||
mEmptyView.setText(emptyViewText);
|
mEmptyView.setText(emptyViewText);
|
||||||
|
mEmptyView.setGravity(Gravity.TOP | Gravity.LEFT);
|
||||||
|
|
||||||
mSwitchBar = getView().findViewById(R.id.switch_bar);
|
mSwitchBar = getView().findViewById(R.id.switch_bar);
|
||||||
mSwitchBar.show();
|
mSwitchBar.show();
|
||||||
|
|||||||
Reference in New Issue
Block a user