Custom Anbox installation files & patches, including patched Android OS image file.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

376 lines
14 KiB

4 years ago
  1. --- a/packages/apps/Gallery2/src/com/android/gallery3d/app/AbstractGalleryActivity.java 2020-06-05 15:04:59.000000000 +0300
  2. +++ b/packages/apps/Gallery2/src/com/android/gallery3d/app/AbstractGalleryActivity.java 2020-06-10 12:58:15.107286681 +0300
  3. @@ -192,12 +192,12 @@ public class AbstractGalleryActivity ext
  4. @Override
  5. protected void onStop() {
  6. super.onStop();
  7. - if (mAlertDialog != null) {
  8. +/* if (mAlertDialog != null) {
  9. unregisterReceiver(mMountReceiver);
  10. mAlertDialog.dismiss();
  11. mAlertDialog = null;
  12. }
  13. - mPanoramaViewHelper.onStop();
  14. + mPanoramaViewHelper.onStop();*/
  15. }
  16. @Override
  17. @@ -217,7 +217,7 @@ public class AbstractGalleryActivity ext
  18. @Override
  19. protected void onPause() {
  20. super.onPause();
  21. - mOrientationManager.pause();
  22. +/* mOrientationManager.pause();
  23. mGLRootView.onPause();
  24. mGLRootView.lockRenderThread();
  25. try {
  26. @@ -227,7 +227,7 @@ public class AbstractGalleryActivity ext
  27. mGLRootView.unlockRenderThread();
  28. }
  29. GalleryBitmapPool.getInstance().clear();
  30. - MediaItem.getBytesBufferPool().clear();
  31. + MediaItem.getBytesBufferPool().clear();*/
  32. }
  33. @Override
  34. --- a/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.java 2020-06-05 15:04:59.000000000 +0300
  35. +++ b/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.java 2020-06-10 12:58:15.130620014 +0300
  36. @@ -435,7 +435,7 @@ public class AlbumPage extends ActivityS
  37. @Override
  38. protected void onPause() {
  39. super.onPause();
  40. - mIsActive = false;
  41. +/* mIsActive = false;
  42. if (mSelectionManager.inSelectionMode()) {
  43. mSelectionManager.leaveSelectionMode();
  44. @@ -453,7 +453,7 @@ public class AlbumPage extends ActivityS
  45. mSyncTask.cancel();
  46. mSyncTask = null;
  47. clearLoadingBit(BIT_LOADING_SYNC);
  48. - }
  49. + }*/
  50. }
  51. @Override
  52. --- a/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumSetPage.java 2020-06-05 15:04:59.000000000 +0300
  53. +++ b/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumSetPage.java 2020-06-10 12:58:15.137286681 +0300
  54. @@ -434,7 +434,7 @@ public class AlbumSetPage extends Activi
  55. @Override
  56. public void onPause() {
  57. super.onPause();
  58. - mIsActive = false;
  59. +/* mIsActive = false;
  60. mAlbumSetDataAdapter.pause();
  61. mAlbumSetView.pause();
  62. mActionModeHandler.pause();
  63. @@ -448,7 +448,7 @@ public class AlbumSetPage extends Activi
  64. mSyncTask.cancel();
  65. mSyncTask = null;
  66. clearLoadingBit(BIT_LOADING_SYNC);
  67. - }
  68. + }*/
  69. }
  70. @Override
  71. --- a/packages/apps/Gallery2/src/com/android/gallery3d/app/GalleryActivity.java 2020-06-05 15:04:59.000000000 +0300
  72. +++ b/packages/apps/Gallery2/src/com/android/gallery3d/app/GalleryActivity.java 2020-06-10 12:58:15.147286681 +0300
  73. @@ -240,9 +240,9 @@ public final class GalleryActivity exten
  74. @Override
  75. protected void onPause() {
  76. super.onPause();
  77. - if (mVersionCheckDialog != null) {
  78. +/* if (mVersionCheckDialog != null) {
  79. mVersionCheckDialog.dismiss();
  80. - }
  81. + }*/
  82. }
  83. @Override
  84. --- a/packages/apps/Gallery2/src/com/android/gallery3d/app/ManageCachePage.java 2020-06-05 15:04:59.000000000 +0300
  85. +++ b/packages/apps/Gallery2/src/com/android/gallery3d/app/ManageCachePage.java 2020-06-10 12:58:15.153953347 +0300
  86. @@ -229,7 +229,7 @@ public class ManageCachePage extends Act
  87. @Override
  88. public void onPause() {
  89. super.onPause();
  90. - mAlbumSetDataAdapter.pause();
  91. +/* mAlbumSetDataAdapter.pause();
  92. mSelectionDrawer.pause();
  93. mEyePosition.pause();
  94. @@ -241,7 +241,7 @@ public class ManageCachePage extends Act
  95. FrameLayout layout = (FrameLayout) ((Activity) mActivity).findViewById(R.id.footer);
  96. layout.removeAllViews();
  97. - layout.setVisibility(View.INVISIBLE);
  98. + layout.setVisibility(View.INVISIBLE);*/
  99. }
  100. private Job<Void> mUpdateStorageInfoJob = new Job<Void>() {
  101. --- a/packages/apps/Gallery2/src/com/android/gallery3d/app/MovieActivity.java 2020-06-05 15:04:59.000000000 +0300
  102. +++ b/packages/apps/Gallery2/src/com/android/gallery3d/app/MovieActivity.java 2020-06-10 12:58:15.163953348 +0300
  103. @@ -220,14 +220,14 @@ public class MovieActivity extends Activ
  104. @Override
  105. protected void onStop() {
  106. - ((AudioManager) getSystemService(AUDIO_SERVICE))
  107. - .abandonAudioFocus(null);
  108. +/* ((AudioManager) getSystemService(AUDIO_SERVICE))
  109. + .abandonAudioFocus(null);*/
  110. super.onStop();
  111. }
  112. @Override
  113. public void onPause() {
  114. - mPlayer.onPause();
  115. +// mPlayer.onPause();
  116. super.onPause();
  117. }
  118. --- a/packages/apps/Gallery2/src/com/android/gallery3d/app/MoviePlayer.java 2020-06-05 15:04:59.000000000 +0300
  119. +++ b/packages/apps/Gallery2/src/com/android/gallery3d/app/MoviePlayer.java 2020-06-10 12:58:15.173953347 +0300
  120. @@ -275,12 +275,12 @@ public class MoviePlayer implements
  121. }
  122. public void onPause() {
  123. - mHasPaused = true;
  124. +/* mHasPaused = true;
  125. mHandler.removeCallbacksAndMessages(null);
  126. mVideoPosition = mVideoView.getCurrentPosition();
  127. mBookmarker.setBookmark(mUri, mVideoPosition, mVideoView.getDuration());
  128. mVideoView.suspend();
  129. - mResumeableTime = System.currentTimeMillis() + RESUMEABLE_TIMEOUT;
  130. + mResumeableTime = System.currentTimeMillis() + RESUMEABLE_TIMEOUT;*/
  131. }
  132. public void onResume() {
  133. --- a/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoPage.java 2020-06-05 15:04:59.000000000 +0300
  134. +++ b/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoPage.java 2020-06-10 12:58:15.180620014 +0300
  135. @@ -1294,7 +1294,7 @@ public abstract class PhotoPage extends
  136. @Override
  137. public void onPause() {
  138. super.onPause();
  139. - mIsActive = false;
  140. +/* mIsActive = false;
  141. mActivity.getGLRoot().unfreeze();
  142. mHandler.removeMessages(MSG_UNFREEZE_GLROOT);
  143. @@ -1315,7 +1315,7 @@ public abstract class PhotoPage extends
  144. }
  145. onCommitDeleteImage();
  146. mMenuExecutor.pause();
  147. - if (mMediaSet != null) mMediaSet.clearDeletion();
  148. + if (mMediaSet != null) mMediaSet.clearDeletion();*/
  149. }
  150. @Override
  151. --- a/packages/apps/Gallery2/src/com/android/gallery3d/app/SlideshowPage.java 2020-06-05 15:04:59.000000000 +0300
  152. +++ b/packages/apps/Gallery2/src/com/android/gallery3d/app/SlideshowPage.java 2020-06-10 12:58:15.190620014 +0300
  153. @@ -172,12 +172,12 @@ public class SlideshowPage extends Activ
  154. @Override
  155. public void onPause() {
  156. super.onPause();
  157. - mIsActive = false;
  158. +/* mIsActive = false;
  159. mModel.pause();
  160. mSlideshowView.release();
  161. mHandler.removeMessages(MSG_LOAD_NEXT_BITMAP);
  162. - mHandler.removeMessages(MSG_SHOW_PENDING_BITMAP);
  163. + mHandler.removeMessages(MSG_SHOW_PENDING_BITMAP);*/
  164. }
  165. @Override
  166. --- a/packages/apps/Gallery2/src/com/android/gallery3d/app/StateManager.java 2020-06-05 15:04:59.000000000 +0300
  167. +++ b/packages/apps/Gallery2/src/com/android/gallery3d/app/StateManager.java 2020-06-10 12:58:15.200620015 +0300
  168. @@ -61,7 +61,7 @@ public class StateManager {
  169. ActivityState top = getTopState();
  170. top.transitionOnNextPause(top.getClass(), klass,
  171. StateTransitionAnimation.Transition.Incoming);
  172. - if (mIsResumed) top.onPause();
  173. + //if (mIsResumed) top.onPause();
  174. }
  175. UsageStatistics.onContentViewChanged(
  176. @@ -71,7 +71,7 @@ public class StateManager {
  177. mStack.push(new StateEntry(data, state));
  178. state.onCreate(data, null);
  179. - if (mIsResumed) state.resume();
  180. + //if (mIsResumed) state.resume();
  181. }
  182. public void startStateForResult(Class<? extends ActivityState> klass,
  183. @@ -92,7 +92,7 @@ public class StateManager {
  184. as.transitionOnNextPause(as.getClass(), klass,
  185. StateTransitionAnimation.Transition.Incoming);
  186. as.mReceivedResults = state.mResult;
  187. - if (mIsResumed) as.onPause();
  188. + //if (mIsResumed) as.onPause();
  189. } else {
  190. mResult = state.mResult;
  191. }
  192. @@ -100,7 +100,7 @@ public class StateManager {
  193. klass.getSimpleName());
  194. mStack.push(new StateEntry(data, state));
  195. state.onCreate(data, null);
  196. - if (mIsResumed) state.resume();
  197. + //if (mIsResumed) state.resume();
  198. }
  199. public boolean createOptionsMenu(Menu menu) {
  200. @@ -124,9 +124,9 @@ public class StateManager {
  201. }
  202. public void pause() {
  203. - if (!mIsResumed) return;
  204. +/* if (!mIsResumed) return;
  205. mIsResumed = false;
  206. - if (!mStack.isEmpty()) getTopState().onPause();
  207. + if (!mStack.isEmpty()) getTopState().onPause();*/
  208. }
  209. public void notifyActivityResult(int requestCode, int resultCode, Intent data) {
  210. @@ -205,21 +205,21 @@ public class StateManager {
  211. mStack.pop();
  212. state.mIsFinishing = true;
  213. ActivityState top = !mStack.isEmpty() ? mStack.peek().activityState : null;
  214. - if (mIsResumed && fireOnPause) {
  215. +/* if (mIsResumed && fireOnPause) {
  216. if (top != null) {
  217. state.transitionOnNextPause(state.getClass(), top.getClass(),
  218. StateTransitionAnimation.Transition.Outgoing);
  219. }
  220. state.onPause();
  221. - }
  222. + } */
  223. mActivity.getGLRoot().setContentPane(null);
  224. state.onDestroy();
  225. -
  226. +/*
  227. if (top != null && mIsResumed) top.resume();
  228. if (top != null) {
  229. UsageStatistics.onContentViewChanged(UsageStatistics.COMPONENT_GALLERY,
  230. top.getClass().getSimpleName());
  231. - }
  232. + } */
  233. }
  234. public void switchState(ActivityState oldState,
  235. @@ -237,7 +237,7 @@ public class StateManager {
  236. oldState.transitionOnNextPause(oldState.getClass(), klass,
  237. StateTransitionAnimation.Transition.Incoming);
  238. }
  239. - if (mIsResumed) oldState.onPause();
  240. + //if (mIsResumed) oldState.onPause();
  241. oldState.onDestroy();
  242. // Create new state.
  243. @@ -250,7 +250,7 @@ public class StateManager {
  244. state.initialize(mActivity, data);
  245. mStack.push(new StateEntry(data, state));
  246. state.onCreate(data, null);
  247. - if (mIsResumed) state.resume();
  248. + //if (mIsResumed) state.resume();
  249. UsageStatistics.onContentViewChanged(UsageStatistics.COMPONENT_GALLERY,
  250. klass.getSimpleName());
  251. }
  252. --- a/packages/apps/Gallery2/src/com/android/gallery3d/app/TrimVideo.java 2020-06-05 15:04:59.000000000 +0300
  253. +++ b/packages/apps/Gallery2/src/com/android/gallery3d/app/TrimVideo.java 2020-06-10 12:58:15.207286681 +0300
  254. @@ -124,19 +124,19 @@ public class TrimVideo extends Activity
  255. @Override
  256. public void onPause() {
  257. - mHasPaused = true;
  258. +/* mHasPaused = true;
  259. mHandler.removeCallbacksAndMessages(null);
  260. mVideoPosition = mVideoView.getCurrentPosition();
  261. - mVideoView.suspend();
  262. + mVideoView.suspend();*/
  263. super.onPause();
  264. }
  265. @Override
  266. public void onStop() {
  267. - if (mProgress != null) {
  268. +/* if (mProgress != null) {
  269. mProgress.dismiss();
  270. mProgress = null;
  271. - }
  272. + }*/
  273. super.onStop();
  274. }
  275. --- a/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/FilterShowActivity.java 2020-06-05 15:04:59.000000000 +0300
  276. +++ b/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/FilterShowActivity.java 2020-06-09 19:39:27.000000000 +0300
  277. @@ -1019,17 +1019,17 @@ public class FilterShowActivity extends
  278. @Override
  279. public void onPause() {
  280. super.onPause();
  281. - if (mShareActionProvider != null) {
  282. +/* if (mShareActionProvider != null) {
  283. mShareActionProvider.setOnShareTargetSelectedListener(null);
  284. - }
  285. + }*/
  286. }
  287. @Override
  288. public void onResume() {
  289. super.onResume();
  290. - if (mShareActionProvider != null) {
  291. +/* if (mShareActionProvider != null) {
  292. mShareActionProvider.setOnShareTargetSelectedListener(this);
  293. - }
  294. + }*/
  295. }
  296. @Override
  297. --- a/packages/apps/Gallery2/src/com/android/gallery3d/ingest/IngestActivity.java 2020-06-05 15:04:59.000000000 +0300
  298. +++ b/packages/apps/Gallery2/src/com/android/gallery3d/ingest/IngestActivity.java 2020-06-09 19:39:54.000000000 +0300
  299. @@ -243,22 +243,22 @@ public class IngestActivity extends Acti
  300. @Override
  301. protected void onResume() {
  302. - DateTileView.refreshLocale();
  303. +/* DateTileView.refreshLocale();
  304. mActive = true;
  305. if (mHelperService != null) {
  306. mHelperService.setClientActivity(this);
  307. }
  308. - updateWarningView();
  309. + updateWarningView();*/
  310. super.onResume();
  311. }
  312. @Override
  313. protected void onPause() {
  314. - if (mHelperService != null) {
  315. +/* if (mHelperService != null) {
  316. mHelperService.setClientActivity(null);
  317. }
  318. mActive = false;
  319. - cleanupProgressDialog();
  320. + cleanupProgressDialog();*/
  321. super.onPause();
  322. }
  323. --- a/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java 2020-06-05 15:04:59.000000000 +0300
  324. +++ b/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java 2020-06-09 19:40:31.000000000 +0300
  325. @@ -531,14 +531,14 @@ public class GLRootView extends GLSurfac
  326. @Override
  327. public void onPause() {
  328. - unfreeze();
  329. +// unfreeze();
  330. super.onPause();
  331. - if (DEBUG_PROFILE) {
  332. +/* if (DEBUG_PROFILE) {
  333. Log.d(TAG, "Stop profiling");
  334. Profile.disableAll();
  335. Profile.dumpToFile("/sdcard/gallery.prof");
  336. Profile.reset();
  337. - }
  338. + }*/
  339. }
  340. @Override