OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.chrome.browser.photo_picker; | 5 package org.chromium.chrome.browser.photo_picker; |
6 | 6 |
7 import android.content.Context; | 7 import android.content.Context; |
8 import android.os.Bundle; | 8 import android.os.Bundle; |
9 import android.support.v7.app.AlertDialog; | 9 import android.support.v7.app.AlertDialog; |
10 import android.view.ViewGroup.LayoutParams; | 10 import android.view.ViewGroup.LayoutParams; |
(...skipping 28 matching lines...) Expand all Loading... |
39 } | 39 } |
40 | 40 |
41 @Override | 41 @Override |
42 protected void onCreate(Bundle savedInstanceState) { | 42 protected void onCreate(Bundle savedInstanceState) { |
43 super.onCreate(savedInstanceState); | 43 super.onCreate(savedInstanceState); |
44 | 44 |
45 getWindow().setLayout(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARE
NT); | 45 getWindow().setLayout(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARE
NT); |
46 getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, | 46 getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, |
47 WindowManager.LayoutParams.FLAG_FULLSCREEN); | 47 WindowManager.LayoutParams.FLAG_FULLSCREEN); |
48 } | 48 } |
| 49 |
| 50 @Override |
| 51 public void dismiss() { |
| 52 super.dismiss(); |
| 53 mCategoryView.onDialogDismissed(); |
| 54 } |
49 } | 55 } |
OLD | NEW |