77import android .view .View ;
88import android .widget .Button ;
99import android .widget .ImageButton ;
10+ import android .widget .RelativeLayout ;
1011import android .widget .TextView ;
1112import android .widget .Toast ;
1213
1314import p32929 .easypasscodelock .Interfaces .ActivityChanger ;
1415import p32929 .easypasscodelock .R ;
16+ import p32929 .easypasscodelock .Utils .EasyLock ;
1517import p32929 .easypasscodelock .Utils .FayazSP ;
1618import p32929 .easypasscodelock .Utils .LockscreenHandler ;
1719
1820public class LockscreenActivity extends LockscreenHandler implements ActivityChanger {
1921
20- private int passButtonIds [] = {
22+ private static Class classToGoAfter ;
23+ String tempPass = "" ;
24+ private int [] passButtonIds = {
2125 R .id .lbtn1 ,
2226 R .id .lbtn2 ,
2327 R .id .lbtn3 ,
@@ -29,14 +33,13 @@ public class LockscreenActivity extends LockscreenHandler implements ActivityCha
2933 R .id .lbtn9 ,
3034 R .id .lbtn0
3135 };
32-
3336 private TextView textViewDot , textViewHAHA ;
3437 private Button buttonTick ;
3538 private ImageButton imageButtonDelete ;
39+ private RelativeLayout relativeLayoutBackground ;
3640
3741 private String passString = "" , realPass = "" ;
3842 private String status = "" ;
39-
4043 //
4144 private String checkStatus = "check" ;
4245 private String setStatus = "set" ;
@@ -45,7 +48,6 @@ public class LockscreenActivity extends LockscreenHandler implements ActivityCha
4548 private String changeStatus = "change" ;
4649 private String changeStatus1 = "change1" ;
4750 private String changeStatus2 = "change2" ;
48- private static Class classToGoAfter ;
4951
5052 @ Override
5153 protected void onCreate (Bundle savedInstanceState ) {
@@ -66,13 +68,13 @@ protected void onCreate(Bundle savedInstanceState) {
6668 }
6769 }
6870
69- String tempPass = "" ;
70-
7171 private void initViews () {
72- textViewHAHA = (TextView ) findViewById (R .id .haha_text );
73- textViewDot = (TextView ) findViewById (R .id .dotText );
74- buttonTick = (Button ) findViewById (R .id .lbtnTick );
75- imageButtonDelete = (ImageButton ) findViewById (R .id .lbtnDelete );
72+ textViewHAHA = findViewById (R .id .haha_text );
73+ textViewDot = findViewById (R .id .dotText );
74+ buttonTick = findViewById (R .id .lbtnTick );
75+ imageButtonDelete = findViewById (R .id .lbtnDelete );
76+ relativeLayoutBackground = findViewById (R .id .background_layout );
77+ relativeLayoutBackground .setBackgroundColor (EasyLock .backgroundColor );
7678
7779 imageButtonDelete .setOnClickListener (new View .OnClickListener () {
7880 @ Override
@@ -179,7 +181,7 @@ else if (status.equals(changeStatus2)) {
179181 });
180182
181183 for (int i = 0 ; i < passButtonIds .length ; i ++) {
182- final Button button = ( Button ) findViewById (passButtonIds [i ]);
184+ final Button button = findViewById (passButtonIds [i ]);
183185 button .setOnClickListener (new View .OnClickListener () {
184186 @ Override
185187 public void onClick (View view ) {
@@ -206,7 +208,7 @@ private void gotoActivity() {
206208
207209 @ Override
208210 public void activityClass (Class activityClassToGo ) {
209- this . classToGoAfter = activityClassToGo ;
211+ classToGoAfter = activityClassToGo ;
210212 }
211213
212214 @ Override
0 commit comments