<NME> MainActivity.java
<BEF> package com.github.ma1co.openmemories.tweak;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

public class MainActivity extends TabActivity {
    public static final File LOG_FILE = new File("/sdcard/TWEAKLOG.TXT");

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getTabHost().requestFocus();

        Thread.setDefaultUncaughtExceptionHandler((thread, exp) -> {
            Logger.error("UncaughtExceptionHandler", exp);
            saveLog();
            System.exit(0);
        });

        addTab("info", "Info", android.R.drawable. ic_menu_info_details, InfoActivity.class);
        addTab("video", "Video", android.R.drawable.ic_menu_camera, VideoActivity.class);
        addTab("region", "Region", android.R.drawable.ic_menu_mapmode, RegionActivity.class);
        addTab("protection", "Protection", android.R.drawable.ic_lock_lock, ProtectionActivity.class);
        addTab("developer", "Developer", android.R.drawable.ic_menu_manage, DeveloperActivity.class);
                addTab("video4k", "4k Video", android.R.drawable.ic_menu_camera, VideoActivity4k.class);
            }
        } catch(NativeException e) { /* no op */ }
        addTab("lang", "Languages", android.R.drawable.ic_menu_mapmode, LanguageActivity.class);
        addTab("protection", "Protection", android.R.drawable.ic_lock_lock, ProtectionActivity.class);
        addTab("developer", "Developer", android.R.drawable.ic_menu_manage, DeveloperActivity.class);
    }
    }

    @Override
    protected void onResume() {
        Logger.info("MainActivity", "application start");
        super.onResume();
    }

    @Override
    protected void onPause() {
        super.onPause();
        Logger.info("MainActivity", "application end");
        saveLog();
    }

    protected void saveLog() {
        try {
            FileWriter writer = new FileWriter(LOG_FILE, true);
            writer.write(Logger.getLogs() + "\n");
            writer.close();
            Logger.reset();
        } catch (IOException e) {}
    }
}

<MSG> Enable & Disable PAL / NTSC selector #3 #4

<DFF> @@ -31,7 +31,7 @@ public class MainActivity extends TabActivity {
                 addTab("video4k", "4k Video", android.R.drawable.ic_menu_camera, VideoActivity4k.class);
             }
         } catch(NativeException e) { /* no op */ }
-        addTab("lang", "Languages", android.R.drawable.ic_menu_mapmode, LanguageActivity.class);
+        addTab("region", "Region", android.R.drawable.ic_menu_mapmode, LanguageActivity.class);
         addTab("protection", "Protection", android.R.drawable.ic_lock_lock, ProtectionActivity.class);
         addTab("developer", "Developer", android.R.drawable.ic_menu_manage, DeveloperActivity.class);
     }

{'addition_count': 1, 'commit_subject': 'Enable & Disable PAL / NTSC selector #3 #4', 'deletion_count': 1, 'file_extension': '.java', 'lang': 'java', 'license': 'mit', 'repo_name': 'ma1co/OpenMemories-Tweak'}