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

Commit 5be6682d authored by Prashant Srivastava's avatar Prashant Srivastava Committed by Gerrit - the friendly Code Review server
Browse files

Operator specific SIM icon customisation.

  -Adding Operator and generic SIM icons.

Change-Id: Id0379c58a38732e8dbe11049adf2879d6b068557
CRs-Fixed: 1076380
parent 33fed856
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -46,4 +46,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    <!-- Default wi-fi direct name -->
    <string name="def_wifi_direct_name" translatable="false"></string>

    <!--  operator custom sim icon feature -->
    <bool name="operator_custom_sim_icon">false</bool>

</resources>
+1 −0
Original line number Diff line number Diff line
@@ -2738,4 +2738,5 @@
  <java-symbol type="bool" name="config_emergencyCallOnPowerkeyTapGestureEnabled" />
  <java-symbol type="bool" name="config_usb_data_unlock" />
  <java-symbol type="bool" name="config_volte_preferred" />
  <java-symbol type="bool" name="operator_custom_sim_icon" />
</resources>
+5 −1
Original line number Diff line number Diff line
@@ -235,7 +235,11 @@ public class SubscriptionInfo implements Parcelable {
        paint.getTextBounds(index, 0, 1, textBound);
        final float xOffset = (width / 2.f) - textBound.centerX();
        final float yOffset = (height / 2.f) - textBound.centerY();
        // check for Custom sim icon feature
        if (!context.getResources().getBoolean(
                com.android.internal.R.bool.operator_custom_sim_icon)) {
            canvas.drawText(index, xOffset, yOffset, paint);
        }

        return workingBitmap;
    }