Code example for Configuration

Methods: updateFrom

0
 
    @Override 
    public void onResume() { 
        super.onResume(); 
        try { 
            mCurConfig.updateFrom(
                ActivityManagerNative.getDefault().getConfiguration()); 
        } catch (RemoteException e) {
        } 
        if (mCurConfig.fontScale < 1) {
            mFontSize.setSelection(0);
        } else if (mCurConfig.fontScale > 1) {
            mFontSize.setSelection(2);
        } else { 
            mFontSize.setSelection(1);
        } 
        updateFontScale(); 
    } 
 
    private void updateFontScale() { 
Stop searching for code, let great code find you!  Add Codota to your java IDE