Skip to content

Commit 3ee68d9

Browse files
LorDClockaNtemasek
authored andcommitted
Halo: Add more info to tutorial on first run
Change-Id: I8a545d5d96f09c47994de81f88284bd57a199655
1 parent ac2addc commit 3ee68d9

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

packages/SystemUI/res/values/cr_strings.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,5 +170,8 @@
170170
<string name="halo_tutorial1">This is HALO</string>
171171
<string name="halo_tutorial2">Move me: double tap &amp; drag</string>
172172
<string name="halo_tutorial3">Browse tasks: Horizontal drag</string>
173+
<string name="halo_tutorial4">Halo disables HeadsUp automatically</string>
174+
<string name="halo_tutorial5">Disable Halo by dragging to red circle</string>
175+
<string name="halo_tutorial6">Disable if you want to install any apk</string>
173176

174177
</resources>

packages/SystemUI/src/com/android/systemui/statusbar/halo/Halo.java

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -398,10 +398,25 @@ public void run() {
398398
.getString(R.string.halo_tutorial3), 0, 3000);
399399
mHandler.postDelayed(new Runnable() {
400400
public void run() {
401-
mState = STATE_IDLE;
402-
mEffect.nap(0);
403-
mEffect.setHaloOverlay
404-
(HaloProperties.Overlay.NONE, 0f);
401+
mEffect.ticker(mContext.getResources()
402+
.getString(R.string.halo_tutorial4), 0, 3000);
403+
mHandler.postDelayed(new Runnable() {
404+
public void run() {
405+
mEffect.ticker(mContext.getResources()
406+
.getString(R.string.halo_tutorial5), 0, 3000);
407+
mHandler.postDelayed(new Runnable() {
408+
public void run() {
409+
mEffect.ticker(mContext.getResources()
410+
.getString(R.string.halo_tutorial6), 0, 3000);
411+
mHandler.postDelayed(new Runnable() {
412+
public void run() {
413+
mState = STATE_IDLE;
414+
mEffect.nap(0);
415+
mEffect.setHaloOverlay
416+
(HaloProperties.Overlay.NONE, 0f);
417+
}}, 6000);
418+
}}, 6000);
419+
}}, 6000);
405420
}}, 6000);
406421
}}, 6000);
407422
}}, 6000);

0 commit comments

Comments
 (0)