[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Rick1684:
Hello Im trying to learn smali editing for theming purposes. I have read many guides and have gotten a few simple edits done successfully, but one in particular still having trouble with is the volume sliders in systemui. Ive tracked down the smali file that controls it. I dont understand how the color is set so I was hoping someone could help me. Thanks in advance

Im on 5.0.1 TouchWiz stock deodexed. The issue Im trying to cure is that when headphones are plugged in the volume slider changes to dual color mode and half red half blue, When active it also overlays the blue color to all sliders in the panel. I have the xml themed the way I want but this smali overlays them.

.method private setDualColorMediaSlider()V
.locals 2

.prologue
.line 3237
iget-object v0, p0, Lcom/android/systemui/volume/VolumePanel;->mAudioManager:Landroid/media/AudioManager;

invoke-virtual {v0}, Landroid/media/AudioManager;->isWiredHeadsetOn()Z

move-result v0

if-nez v0, :cond_0

iget-object v0, p0, Lcom/android/systemui/volume/VolumePanel;->mAudioManager:Landroid/media/AudioManager;

invoke-virtual {v0}, Landroid/media/AudioManager;->isBluetoothA2dpOn()Z

move-result v0

if-eqz v0, :cond_1

invoke-direct {p0}, Lcom/android/systemui/volume/VolumePanel;->isDeviceOutSpeaker()Z

move-result v0

if-nez v0, :cond_1

.line 3239
:cond_0
iget-object v0, p0, Lcom/android/systemui/volume/VolumePanel;->mMediaSlider:Landroid/widget/SeekBar;

const/4 v1, 0x0

invoke-virtual {v0, v1}, Landroid/widget/SeekBar;->setMode(I)V

.line 3244
iget-object v0, p0, Lcom/android/systemui/volume/VolumePanel;->mMediaSlider:Landroid/widget/SeekBar;

iget v1, p0, Lcom/android/systemui/volume/VolumePanel;->mSafetyValue:I

invoke-virtual {v0, v1}, Landroid/widget/SeekBar;->setOverlapPointForDualColor(I)V

.line 3250
:goto_0
iget-object v0, p0, Lcom/android/systemui/volume/VolumePanel;->mMediaSlider:Landroid/widget/SeekBar;

invoke-virtual {v0}, Landroid/widget/SeekBar;->invalidate()V

.line 3251
return-void

.line 3247
:cond_1
iget-object v0, p0, Lcom/android/systemui/volume/VolumePanel;->mMediaSlider:Landroid/widget/SeekBar;

const/4 v1, -0x1

invoke-virtual {v0, v1}, Landroid/widget/SeekBar;->setOverlapPointForDualColor(I)V

goto :goto_0
.end method

.method private setDualColorSeekbar(ILcom/android/systemui/volume/VolumePanel$StreamControl;)V
.locals 3
.param p1, "streamType" # I
.param p2, "sc" # Lcom/android/systemui/volume/VolumePanel$StreamControl;

.prologue
const/4 v2, 0x3

.line 3217
if-eq p1, v2, :cond_0

const/16 v0, 0xa

if-ne p1, v0, :cond_3

.line 3218
:cond_0
iget-object v0, p0, Lcom/android/systemui/volume/VolumePanel;->mAudioManager:Landroid/media/AudioManager;

invoke-virtual {v0}, Landroid/media/AudioManager;->isWiredHeadsetOn()Z

move-result v0

if-nez v0, :cond_1

iget-object v0, p0, Lcom/android/systemui/volume/VolumePanel;->mAudioManager:Landroid/media/AudioManager;

invoke-virtual {v0}, Landroid/media/AudioManager;->isBluetoothA2dpOn()Z

move-result v0

if-eqz v0, :cond_4

invoke-direct {p0}, Lcom/android/systemui/volume/VolumePanel;->isDeviceOutSpeaker()Z

move-result v0

if-nez v0, :cond_4

.line 3220
:cond_1
iget-object v0, p2, Lcom/android/systemui/volume/VolumePanel$StreamControl;->seekbarView:Landroid/widget/SeekBar;

const/4 v1, 0x0

invoke-virtual {v0, v1}, Landroid/widget/SeekBar;->setMode(I)V

.line 3222
iget v0, p2, Lcom/android/systemui/volume/VolumePanel$StreamControl;->streamType:I

if-ne v0, v2, :cond_2

.line 3226
:cond_2
iget-object v0, p2, Lcom/android/systemui/volume/VolumePanel$StreamControl;->seekbarView:Landroid/widget/SeekBar;

iget-object v1, p0, Lcom/android/systemui/volume/VolumePanel;->mAudioManager:Landroid/media/AudioManager;

invoke-static {}, Landroid/media/AudioManager;->getEarProtectLimitIndex()I

move-result v1

add-int/lit8 v1, v1, -0x1

invoke-virtual {v0, v1}, Landroid/widget/SeekBar;->setOverlapPointForDualColor(I)V

.line 3233
:cond_3
:goto_0
iget-object v0, p2, Lcom/android/systemui/volume/VolumePanel$StreamControl;->seekbarView:Landroid/widget/SeekBar;

invoke-virtual {v0}, Landroid/widget/SeekBar;->invalidate()V

.line 3234
return-void

.line 3230
:cond_4
iget-object v0, p2, Lcom/android/systemui/volume/VolumePanel$StreamControl;->seekbarView:Landroid/widget/SeekBar;

const/4 v1, -0x1

invoke-virtual {v0, v1}, Landroid/widget/SeekBar;->setOverlapPointForDualColor(I)V

goto :goto_0
.end method

.method private setLayoutDirection(I)V]