Fixed 'ClassCastException' from last commit

This commit is contained in:
root 2020-08-03 14:13:41 +07:00
parent 3d0264923d
commit 32672372aa

View File

@ -31,7 +31,7 @@ public class PojavLoginActivity extends AppCompatActivity
private EditText edit2, edit3; private EditText edit2, edit3;
private int REQUEST_STORAGE_REQUEST_CODE = 1; private int REQUEST_STORAGE_REQUEST_CODE = 1;
private ProgressBar prb; private ProgressBar prb;
private Switch sRemember, sOffline; private CheckBox sRemember, sOffline;
private boolean isPromptingGrant = false; private boolean isPromptingGrant = false;
// private boolean isPermGranted = false; // private boolean isPermGranted = false;
@ -247,8 +247,8 @@ public class PojavLoginActivity extends AppCompatActivity
edit3 = (EditText) findViewById(R.id.login_edit_password); edit3 = (EditText) findViewById(R.id.login_edit_password);
if(prb == null) prb = (ProgressBar) findViewById(R.id.launcherAccProgress); if(prb == null) prb = (ProgressBar) findViewById(R.id.launcherAccProgress);
sRemember = (Switch) findViewById(R.id.login_switch_remember); sRemember = findViewById(R.id.login_switch_remember);
sOffline = (Switch) findViewById(R.id.login_switch_offline); sOffline = findViewById(R.id.login_switch_offline);
sOffline.setOnCheckedChangeListener(new OnCheckedChangeListener(){ sOffline.setOnCheckedChangeListener(new OnCheckedChangeListener(){
@Override @Override