package com.tdx.demo.copyassets;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.tdx.demo.library.PathUtil;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        PathUtil.showAndroidDir();
    }
}

@@ -403,8 +403,1244 @@
     %7D%0A%7D%0A
+SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);%0A%09%09%09%09Locale locale = null;%0A%09%09%09%09if (!prefs.contains(%22SharedPreferences_language%22))%7B%0A%09%09%09%09%09if (Locale.JAPANESE.getLanguage().equals(Locale.getDefault().getLanguage()))%7B%0A%09%09%09%09%09%09locale = Locale.JAPANESE;%0A%09%09%09%09%09%7D else if (Locale.CHINESE.getLanguage().equals(Locale.getDefault().getLanguage()))%7B%0A%09%09%09%09%09%09locale = Locale.CHINESE;%0A%09%09%09%09%09%7D else if (Locale.ENGLISH.getLanguage().equals(Locale.getDefault().getLanguage()))%7B%0A%09%09%09%09%09%09locale = Locale.ENGLISH;%0A%09%09%09%09%09%7D else %7B%0A%09%09%09%09%09%09locale = Locale.ENGLISH;%0A%09%09%09%09%09%7D%0A%09%09%09%09%7D else %7B%0A%09%09%09%09%09String option = prefs.getString(%22SharedPreferences_language%22, %22jp%22);%0A%09%09%09%09%09LanguageCommon languageCommon = new LanguageCommon();%0A%09%09%09%09%09locale = languageCommon.intToLocale(Integer.valueOf(option));%0A%09%09%09%09%7D%0A%0A%09%09%09%09%0A%09%09%09%09PanatermApplication.appLanguageFlag = locale.getLanguage();%0A%09%09%09%09%0A%09%09%09%09Resources res = getResources();%0A%09%09%09%09Configuration config = res.getConfiguration();%0A%09%09%09%09%0A%09%09%09%09if (!config.locale.getLanguage().equals(PanatermApplication.appLanguageFlag))%7B%0A%09%09%09%09%0A%09%09%09%09%09PanatermApplication.osLanguageFlag = locale.getLanguage();%0A%09%09%09%09%09config.locale = locale;%0A%09%09%09%09%09DisplayMetrics dm = res.getDisplayMetrics();%0A%09%09%09%09%09res.updateConfiguration(config, dm);%0A%09%09%09%09%7D%0A

Update MainActivity.java