Skip to content

Commit 86981f1

Browse files
committed
removed some extra lines
1 parent c5b8df0 commit 86981f1

File tree

1 file changed

+11
-24
lines changed

1 file changed

+11
-24
lines changed

easypasscodelock/src/main/java/p32929/easypasscodelock/Activities/LockscreenActivity.java

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
import android.widget.TextView;
1111
import android.widget.Toast;
1212

13-
import p32929.easypasscodelock.R;
1413
import p32929.easypasscodelock.Interfaces.ActivityChanger;
14+
import p32929.easypasscodelock.R;
1515
import p32929.easypasscodelock.Utils.FayazSP;
1616
import p32929.easypasscodelock.Utils.LockscreenHandler;
1717

@@ -31,7 +31,6 @@ public class LockscreenActivity extends LockscreenHandler implements ActivityCha
3131
};
3232

3333
private TextView textViewDot, textViewHAHA;
34-
public static TextView textViewForgotPass;
3534
private Button buttonTick;
3635
private ImageButton imageButtonDelete;
3736

@@ -40,7 +39,6 @@ public class LockscreenActivity extends LockscreenHandler implements ActivityCha
4039

4140
//
4241
private String checkStatus = "check";
43-
// private String checkStatus0 = "check0";
4442
private String setStatus = "set";
4543
private String setStatus1 = "set1";
4644
private String disableStatus = "disable";
@@ -69,10 +67,10 @@ protected void onCreate(Bundle savedInstanceState) {
6967
}
7068

7169
String tempPass = "";
70+
7271
private void initViews() {
7372
textViewHAHA = (TextView) findViewById(R.id.haha_text);
7473
textViewDot = (TextView) findViewById(R.id.dotText);
75-
textViewForgotPass = (TextView) findViewById(R.id.forgot_pass_textview);
7674
buttonTick = (Button) findViewById(R.id.lbtnTick);
7775
imageButtonDelete = (ImageButton) findViewById(R.id.lbtnDelete);
7876

@@ -89,7 +87,7 @@ public void onClick(View view) {
8987
@Override
9088
public void onClick(View view) {
9189

92-
///////////////////////////////////
90+
//
9391
if (status.equals(checkStatus)) {
9492
if (passString.equals(realPass)) {
9593
finish();
@@ -100,20 +98,7 @@ public void onClick(View view) {
10098
}
10199
}
102100

103-
// else if (status.equals(checkStatus0)) {
104-
// //
105-
// if (passString.equals(realPass)) {
106-
// // TODO: 7/11/18 A locked activity is needed
107-
// finish();
108-
// } else {
109-
// passString = "";
110-
// textViewDot.setText(passString);
111-
// Toast.makeText(LockscreenActivity.this, "Incorrect Password", Toast.LENGTH_SHORT).show();
112-
// }
113-
// }
114-
115-
116-
/////////////////////////////////////
101+
//
117102
else if (status.equals(setStatus)) {
118103
//
119104
tempPass = passString;
@@ -122,7 +107,10 @@ else if (status.equals(setStatus)) {
122107

123108
textViewHAHA.setText("Confirm Password");
124109
textViewDot.setText(passString);
125-
} else if (status.equals(setStatus1)) {
110+
}
111+
112+
//
113+
else if (status.equals(setStatus1)) {
126114
//
127115
if (passString.equals(tempPass)) {
128116
FayazSP.put("password", passString);
@@ -141,8 +129,7 @@ else if (status.equals(setStatus)) {
141129
}
142130
}
143131

144-
145-
///////////////////////////////////////
132+
//
146133
else if (status.equals(changeStatus)) {
147134
if (passString.equals(realPass)) {
148135
tempPass = passString;
@@ -158,6 +145,7 @@ else if (status.equals(changeStatus)) {
158145
Toast.makeText(LockscreenActivity.this, "Please Enter Current Password", Toast.LENGTH_SHORT).show();
159146
}
160147
}
148+
161149
//
162150
else if (status.equals(changeStatus1)) {
163151
tempPass = passString;
@@ -167,6 +155,7 @@ else if (status.equals(changeStatus1)) {
167155
textViewHAHA.setText("Confirm Password");
168156
textViewDot.setText(passString);
169157
}
158+
170159
//
171160
else if (status.equals(changeStatus2)) {
172161
if (passString.equals(tempPass)) {
@@ -186,8 +175,6 @@ else if (status.equals(changeStatus2)) {
186175
}
187176
}
188177

189-
//////////////////////////////////
190-
191178
}
192179
});
193180

0 commit comments

Comments
 (0)