• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Simple Notepad Application for Android OS


Commit MetaInfo

Revisión703ef18acfd27cd13a13a5c06aa66e36f66f6636 (tree)
Tiempo2016-05-05 14:35:52
AutorMasahiko, SAWAI <say@user...>
CommiterMasahiko, SAWAI

Log Message

Updated app version : 1.0.8 -> 1.0.9

Cambiar Resumen

Diferencia incremental

--- a/notepad-app-level-11/pom.xml
+++ b/notepad-app-level-11/pom.xml
@@ -8,21 +8,21 @@
88 <groupId>org.routine_work</groupId>
99 <artifactId>notepad-app-level-11</artifactId>
1010 <packaging>apk</packaging>
11- <version>1.0.8</version>
11+ <version>1.0.9</version>
1212 <name>Notepad App Level 11</name>
1313
1414 <parent>
1515 <groupId>org.routine_work</groupId>
1616 <artifactId>notepad-project</artifactId>
17- <version>1.0.8</version>
17+ <version>1.0.9</version>
1818 </parent>
1919
2020 <dependencies>
2121
2222 <dependency>
23- <groupId>com.google.android</groupId>
23+ <groupId>android</groupId>
2424 <artifactId>android</artifactId>
25- <version>4.1.1.4</version>
25+ <version>6.0_r3</version>
2626 <!--
2727 <version>1.5_r3</version>
2828 <version>1.5_r4</version>
@@ -39,7 +39,7 @@
3939 <dependency>
4040 <groupId>org.routine_work</groupId>
4141 <artifactId>notepad-common</artifactId>
42- <version>1.0.8</version>
42+ <version>1.0.9</version>
4343 <scope>compile</scope>
4444 </dependency>
4545
--- a/notepad-app-level-11/src/main/AndroidManifest.xml
+++ b/notepad-app-level-11/src/main/AndroidManifest.xml
@@ -2,8 +2,8 @@
22 <manifest
33 xmlns:android="http://schemas.android.com/apk/res/android"
44 package="org.routine_work.notepad"
5- android:versionCode="25"
6- android:versionName="1.0.8"
5+ android:versionCode="27"
6+ android:versionName="1.0.9"
77 android:installLocation="auto"
88 >
99 <uses-sdk android:minSdkVersion="11" android:targetSdkVersion="23" />
--- a/notepad-app-level-11/src/main/java/org/routine_work/notepad/prefs/NotepadPreferenceActivity.java
+++ b/notepad-app-level-11/src/main/java/org/routine_work/notepad/prefs/NotepadPreferenceActivity.java
@@ -23,6 +23,8 @@
2323 */
2424 package org.routine_work.notepad.prefs;
2525
26+import android.annotation.TargetApi;
27+import android.os.Build;
2628 import android.os.Bundle;
2729 import android.preference.PreferenceActivity;
2830 import android.view.Menu;
@@ -37,14 +39,12 @@ import org.routine_work.utils.Log;
3739 *
3840 * @author sawai
3941 */
40-public class NotepadPreferenceActivity extends PreferenceActivity
41-{
42+public class NotepadPreferenceActivity extends PreferenceActivity {
4243
4344 private static final String LOG_TAG = "simple-notepad";
4445
4546 @Override
46- protected void onCreate(Bundle savedInstanceState)
47- {
47+ protected void onCreate(Bundle savedInstanceState) {
4848 Log.v(LOG_TAG, "Hello");
4949
5050 setTheme(NotepadPreferenceUtils.getTheme(this));
@@ -54,8 +54,7 @@ public class NotepadPreferenceActivity extends PreferenceActivity
5454 }
5555
5656 @Override
57- public void onBuildHeaders(List<Header> target)
58- {
57+ public void onBuildHeaders(List<Header> target) {
5958 Log.v(LOG_TAG, "Hello");
6059
6160 super.onBuildHeaders(target);
@@ -65,8 +64,7 @@ public class NotepadPreferenceActivity extends PreferenceActivity
6564 }
6665
6766 @Override
68- public boolean onCreateOptionsMenu(Menu menu)
69- {
67+ public boolean onCreateOptionsMenu(Menu menu) {
7068 MenuInflater menuInflater = getMenuInflater();
7169 menuInflater.inflate(R.menu.quit_option_menu, menu);
7270
@@ -74,13 +72,11 @@ public class NotepadPreferenceActivity extends PreferenceActivity
7472 }
7573
7674 @Override
77- public boolean onOptionsItemSelected(MenuItem item)
78- {
75+ public boolean onOptionsItemSelected(MenuItem item) {
7976 boolean result = true;
8077
8178 int itemId = item.getItemId();
82- switch (itemId)
83- {
79+ switch (itemId) {
8480 case R.id.quit_menuitem:
8581 NotepadActivity.quitApplication(this);
8682 break;
@@ -94,4 +90,29 @@ public class NotepadPreferenceActivity extends PreferenceActivity
9490 return result;
9591 }
9692
93+ private static final String[] VALID_FRAGMENT_NAMES = {
94+ "org.routine_work.notepad.prefs.DisplayPreferenceFragment",
95+ "org.routine_work.notepad.prefs.ShareDataPreferenceFragment",
96+ "org.routine_work.notepad.prefs.BackupAndResetPreferenceFragment",
97+ "org.routine_work.notepad.prefs.AboutAppPreferenceFragment"
98+ };
99+
100+ @Override
101+ @TargetApi(Build.VERSION_CODES.KITKAT)
102+ protected boolean isValidFragment(String fragmentName) {
103+ boolean result = false;
104+ Log.v(LOG_TAG, "Hello");
105+ Log.v(LOG_TAG, "fragmentName => " + fragmentName);
106+
107+ for (String validFragmentName : VALID_FRAGMENT_NAMES) {
108+ if (validFragmentName.equals(fragmentName)) {
109+ result = true;
110+ break;
111+ }
112+ }
113+ Log.v(LOG_TAG, "result => " + result);
114+ Log.v(LOG_TAG, "Bye");
115+ return result;
116+ }
117+
97118 }
--- a/notepad-app/pom.xml
+++ b/notepad-app/pom.xml
@@ -8,13 +8,13 @@
88 <groupId>org.routine_work</groupId>
99 <artifactId>notepad-app</artifactId>
1010 <packaging>apk</packaging>
11- <version>1.0.8</version>
11+ <version>1.0.9</version>
1212 <name>Notepad App</name>
1313
1414 <parent>
1515 <groupId>org.routine_work</groupId>
1616 <artifactId>notepad-project</artifactId>
17- <version>1.0.8</version>
17+ <version>1.0.9</version>
1818 </parent>
1919
2020 <dependencies>
@@ -39,7 +39,7 @@
3939 <dependency>
4040 <groupId>org.routine_work</groupId>
4141 <artifactId>notepad-common</artifactId>
42- <version>1.0.8</version>
42+ <version>1.0.9</version>
4343 <scope>compile</scope>
4444 </dependency>
4545
--- a/notepad-app/src/main/AndroidManifest.xml
+++ b/notepad-app/src/main/AndroidManifest.xml
@@ -2,8 +2,8 @@
22 <manifest
33 xmlns:android="http://schemas.android.com/apk/res/android"
44 package="org.routine_work.notepad"
5- android:versionCode="24"
6- android:versionName="1.0.8"
5+ android:versionCode="26"
6+ android:versionName="1.0.9"
77 android:installLocation="auto"
88 >
99 <uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4" />
--- a/notepad-common/pom.xml
+++ b/notepad-common/pom.xml
@@ -8,13 +8,13 @@
88 <groupId>org.routine_work</groupId>
99 <artifactId>notepad-common</artifactId>
1010 <packaging>jar</packaging>
11- <version>1.0.8</version>
11+ <version>1.0.9</version>
1212 <name>Notepad Common Library</name>
1313
1414 <parent>
1515 <groupId>org.routine_work</groupId>
1616 <artifactId>notepad-project</artifactId>
17- <version>1.0.8</version>
17+ <version>1.0.9</version>
1818 </parent>
1919
2020 <dependencies>
--- a/pom.xml
+++ b/pom.xml
@@ -7,7 +7,7 @@
77 <groupId>org.routine_work</groupId>
88 <artifactId>notepad-project</artifactId>
99 <packaging>pom</packaging>
10- <version>1.0.8</version>
10+ <version>1.0.9</version>
1111 <name>Notepad Project</name>
1212 <url>http://sourceforge.jp/users/say/pf/android_notepad/scm/</url>
1313