|
@ -17,6 +17,8 @@ import android.widget.LinearLayout; |
|
|
import android.widget.TextView; |
|
|
import android.widget.TextView; |
|
|
|
|
|
|
|
|
import com.gmeremit.online.gmeremittance_native.R; |
|
|
import com.gmeremit.online.gmeremittance_native.R; |
|
|
|
|
|
import com.gmeremit.online.gmeremittance_native.base.BaseActivity; |
|
|
|
|
|
import com.gmeremit.online.gmeremittance_native.customwidgets.CustomAlertDialog; |
|
|
import com.gmeremit.online.gmeremittance_native.homeV2.view.HomeActivityV2; |
|
|
import com.gmeremit.online.gmeremittance_native.homeV2.view.HomeActivityV2; |
|
|
import com.gmeremit.online.gmeremittance_native.invite.view.InviteActivity; |
|
|
import com.gmeremit.online.gmeremittance_native.invite.view.InviteActivity; |
|
|
import com.gmeremit.online.gmeremittance_native.loginV2.view.LoginV2Activity; |
|
|
import com.gmeremit.online.gmeremittance_native.loginV2.view.LoginV2Activity; |
|
@ -36,7 +38,7 @@ import butterknife.OnClick; |
|
|
* Created by FMI-LT-17 on 2/9/2018. |
|
|
* Created by FMI-LT-17 on 2/9/2018. |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
public class SplashScreen extends AppCompatActivity { |
|
|
|
|
|
|
|
|
public class SplashScreen extends BaseActivity { |
|
|
|
|
|
|
|
|
@BindView(R.id.view_pager) |
|
|
@BindView(R.id.view_pager) |
|
|
ViewPager view_pager; |
|
|
ViewPager view_pager; |
|
@ -142,11 +144,12 @@ public class SplashScreen extends AppCompatActivity { |
|
|
@Override |
|
|
@Override |
|
|
protected void onResume() { |
|
|
protected void onResume() { |
|
|
super.onResume(); |
|
|
super.onResume(); |
|
|
if (rootBeer.isRooted()&&rootBeer.isRootedWithoutBusyBoxCheck()) { |
|
|
|
|
|
|
|
|
if (rootBeer.isRootedWithoutBusyBoxCheck()) { |
|
|
//we found indication of root |
|
|
//we found indication of root |
|
|
Log.d("RootCheck","Rooted"); |
|
|
|
|
|
|
|
|
showPopUpMessage("Rooted devices are not supported", CustomAlertDialog.AlertType.ALERT,alertType -> { |
|
|
|
|
|
exitView(); |
|
|
|
|
|
}); |
|
|
} else { |
|
|
} else { |
|
|
Log.d("RootCheck","NotRooted"); |
|
|
|
|
|
//we didn't find indication of root |
|
|
//we didn't find indication of root |
|
|
if (persistenceStorageManager.getLoggedin() != null && persistenceStorageManager.getLoggedin().equals("HOME")) { |
|
|
if (persistenceStorageManager.getLoggedin() != null && persistenceStorageManager.getLoggedin().equals("HOME")) { |
|
|
startActivity(new Intent(this, HomeActivityV2.class)); |
|
|
startActivity(new Intent(this, HomeActivityV2.class)); |
|
|