Commit a8e4f50a authored by Wink Saville's avatar Wink Saville
Browse files

Fix mVibrator initialization.

getSystemService cannot be called during java#init, moving initialization
of mVibrator into onCreate.

Bug: 6886400
Change-Id: I644aa674fffb11ea755bd6d96169e43896c839f2
parent 598b3dd8
......@@ -55,7 +55,7 @@ public class ToneDialog extends Activity {
}
};
Vibrator mVibrator = (Vibrator)getSystemService(VIBRATOR_SERVICE);
Vibrator mVibrator;
// Message id to signal tone duration timeout.
private static final int MSG_ID_STOP_TONE = 0xda;
......@@ -64,7 +64,9 @@ public class ToneDialog extends Activity {
protected void onCreate(Bundle icicle) {
super.onCreate(icicle);
initFromIntent(getIntent());
mVibrator = (Vibrator)getSystemService(VIBRATOR_SERVICE);
initFromIntent(getIntent());
// remove window title
View title = findViewById(com.android.internal.R.id.title);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment